Skip to content

Commit f2658d5

Browse files
committed
update readme
#26
1 parent 09ef7eb commit f2658d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ A collection of Value Objects to save time by generalizing types and format vali
2727
* [ISO Date](#iso-date)
2828
* [Security value-objects](#security-value-objects)
2929
* [CVE](#cve)
30+
* [CPE](#cpe)
3031

3132
# Value-objects
3233

@@ -184,4 +185,16 @@ my_cve = Cve('CVE-2014-9418')
184185

185186
# Getting raw value
186187
my_cve.value() # returns -> 'CVE-2014-9418'
188+
```
189+
190+
### CPE
191+
192+
```python
193+
from pyvalueobjects import Cpe
194+
195+
# Creation
196+
my_cpe = Cpe('cpe:/a:openjdk:openjdk:8u282')
197+
198+
# Getting raw value
199+
my_cpe.value() # returns -> 'cpe:/a:openjdk:openjdk:8u282'
187200
```

0 commit comments

Comments
 (0)