nexb / cwe2 Goto Github PK
View Code? Open in Web Editor NEWCommon weakness enumeration library for Python (maintained fork of https://github.com/Julian-Nash/cwe )
License: MIT License
Common weakness enumeration library for Python (maintained fork of https://github.com/Julian-Nash/cwe )
License: MIT License
nexB/vulnerablecode#1256 (comment) : Avoid too broad Exception.
https://docs.python.org/3/library/exceptions.html#built-in-exceptions
On my Windows10, the default decode mode is gbk.
In this file cwe2\database\699.csv
line 418 col 3402, gbk can't decode the 0xE2 0x80 0x9C
.
Suggestion:
When open *.csv files, should explicitly use encoding='utf-8'
.
Thank you very much for your project!
https://cwe.mitre.org/data/definitions/399.html
>>> from cwe2.database import Database
>>> db = Database()
>>> db.get(399)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/yangchao/.virtualenvs/cve-env/lib/python3.10/site-packages/cwe2/database.py", line 58, in get
raise Exception(f"Invalid CWE ID {cwe_id} - {category or ''}")
Exception: Invalid CWE ID 399 -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.