Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
fholger
/
tools-python
Public
forked from
spdx/tools-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
tools-python
dev
gen_python_model_from_spec.py
on
codegen_model
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 17, 2023
Refactor code generator; split into multiple files
Show description for 49e103e
fholger
committed
49e103e
View commit details
Copy full SHA for 49e103e
View code at this point
Browse repository at this point
Exclude generated code from flake8 linting (even though it's mostly fine)
Show description for 311ac8b
fholger
committed
311ac8b
View commit details
Copy full SHA for 311ac8b
View code at this point
Browse repository at this point
Avoid unused imports in generated code
Show description for c104c40
fholger
committed
c104c40
View commit details
Copy full SHA for c104c40
View code at this point
Browse repository at this point
Prevent redeclaration of existing properties during codegen
Show description for 5e68d3e
fholger
committed
5e68d3e
View commit details
Copy full SHA for 5e68d3e
View code at this point
Browse repository at this point
Improve format of generated code by running black and isort on the output in the code generator
Show description for b151fc2
fholger
committed
b151fc2
View commit details
Copy full SHA for b151fc2
View code at this point
Browse repository at this point
Parse and obey property restrictions in the model dump when generating classes
Show description for 20eb9f0
fholger
committed
20eb9f0
View commit details
Copy full SHA for 20eb9f0
View code at this point
Browse repository at this point
Exclude classes from being generated if we have a custom type mapping in place for them
Show description for 9bcbfc9
fholger
committed
9bcbfc9
View commit details
Copy full SHA for 9bcbfc9
View code at this point
Browse repository at this point
Properly map lists of DictionaryEntry to python dicts
Show description for 0708303
fholger
committed
0708303
View commit details
Copy full SHA for 0708303
View code at this point
Browse repository at this point
Properly map core datatypes and xsd types to Python types
Show description for 3fba351
fholger
committed
3fba351
View commit details
Copy full SHA for 3fba351
View code at this point
Browse repository at this point
Fix ai_package filename
Show description for de4c9e2
fholger
committed
de4c9e2
View commit details
Copy full SHA for de4c9e2
View code at this point
Browse repository at this point
Use mistletoe for properly reformatting the docstrings
Show description for c4146b9
fholger
committed
c4146b9
View commit details
Copy full SHA for c4146b9
View code at this point
Browse repository at this point
Exclude unfinished Extension type
Show description for be773b5
fholger
committed
be773b5
View commit details
Copy full SHA for be773b5
View code at this point
Browse repository at this point
Add abstract constructor if type is not instantiable
Show description for e21ab69
fholger
committed
e21ab69
View commit details
Copy full SHA for e21ab69
View code at this point
Browse repository at this point
Remove dead code
Show description for 1eec56b
fholger
committed
1eec56b
View commit details
Copy full SHA for 1eec56b
View code at this point
Browse repository at this point
Generate constructor with all arguments, including inherited, and potential default values
Show description for 0c083ef
fholger
committed
0c083ef
View commit details
Copy full SHA for 0c083ef
View code at this point
Browse repository at this point
Make the string to enum function a static class method of the enum
Show description for f39930c
fholger
committed
f39930c
View commit details
Copy full SHA for f39930c
View code at this point
Browse repository at this point
Collect properties from parent classes, too
Show description for fc43ed7
fholger
committed
fc43ed7
View commit details
Copy full SHA for fc43ed7
View code at this point
Browse repository at this point
Add docstrings for class properties
Show description for c742cfd
fholger
committed
c742cfd
View commit details
Copy full SHA for c742cfd
View code at this point
Browse repository at this point
Set parent class correctly when generating SPDX dataclasses
Show description for b5b6153
fholger
committed
b5b6153
View commit details
Copy full SHA for b5b6153
View code at this point
Browse repository at this point
Generate properties for SPDX3 dataclasses
Show description for b9cd909
fholger
committed
b9cd909
View commit details
Copy full SHA for b9cd909
View code at this point
Browse repository at this point
Add docstrings to generated Vocab enum types
Show description for 3f8d0b5
fholger
committed
3f8d0b5
View commit details
Copy full SHA for 3f8d0b5
View code at this point
Browse repository at this point
wip Generate init files for SPDX3 model modules
Show description for 049f2ec
fholger
committed
049f2ec
View commit details
Copy full SHA for 049f2ec
View code at this point
Browse repository at this point
wip Generate python model from spec: vocabs
Show description for c71dacd
fholger
committed
c71dacd
View commit details
Copy full SHA for c71dacd
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.