python-lapidary / lapidary-render Goto Github PK
View Code? Open in Web Editor NEWWeb API client generator
Home Page: https://lapidary.dev
License: GNU Affero General Public License v3.0
Web API client generator
Home Page: https://lapidary.dev
License: GNU Affero General Public License v3.0
Name of any schema, parameter or property can ba any valid string, excluding Unicode control characters, while python accepts only alphanumerics + underscore (_
), which has a special meaning if placed at the beginning.
Possible ways of handling names that are not valid python identifiers:
Composite schemas are those using oneOf, anyOf, allOf and not.
not
schema, which properties should be excludedmodule:class
It would be great if I could offload rendering to an external project like cookiecutter or copier. lapidary-render could focus on developing template and generating model.
Unfortunately theses projects are designed to generate project stubs, with single file being generated from each template.
add .lapidary_cache and standard python dirs
use
Params and attributes change order even though schema doesn't change.
Makes a mess in git commit.
Poetry has an undocumented feature allowing to run a custom script while building the project.
Use this feature to generate sources on build, instead committing the code to the VCS.
readOnly and writeOnly properties really mean response- and request - only. it's really a direction and not access.
class MyModel(BaseModel)
directed_field: Annotated[MyType|None, pydantic.Field(...), Only('read', required=True)] = None
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.