domain file generator
Provided information about object names and fields, creates base java classes for the objects
Usage
call domainfile_generator.run(objects: string, paths: dict).
- objects: comma separated string of objects to be created. Contains:
- package
- objectName
- fields (name,type,required(optional))
- Possible data types:
- INTEGER
- STRING
- DECIMAL
- BOOLEAN
- DATE
- TIMESTAMP
- ENUM (with slash-separated list of name and values)
- REFERENCE and INCOMING_REFERENCE (both followed by /n for multiple targets, /1 or nothing for a to-1 relationship)
- An example object "Person" inside the package "company" could look like this: "company;Person;name,STRING,required;firstName,STRING;dateOfBirth,DATE;gender,ENUM(Gender/MALE/FEMALE/DIVERSE),required;employments,INCOMING_REFERENCE(company.Employment/n);manager,REFERENCE(company.Person)"
- Possible data types:
- paths: dict with different paths to define the structure of the project. e.g.:
paths = {
'domain': '\backend\domain\src\main\java\org\derbanz\test\domain\',
'schema': '\backend\domain\src\main\resources\schema\',
'logic': '\backend\logic\src\main\java\org\derbanz\test\logic\',
'commonService': '\backend\service\common\src\main\java\org\derbanz\test\commonservice\',
'uiService': '\backend\service\ui\src\main\java\org\derbanz\test\uiservice\'
}
Example
from Banz_domainfile_generator import domainfile_generator
csv = "company;Person;name,STRING,required;firstName,STRING;dateOfBirth,DATE;gender,ENUM(Gender/MALE/FEMALE/DIVERSE),required;employments,INCOMING_REFERENCE(company.Employment/n);manager,REFERENCE(company.Person)"
paths = {
'domain': '\\test\\backend\\domain\\src\\main\\java\\org\\derbanz\\test\\domain\\',
'schema': '\\test\\backend\\domain\\src\\main\\resources\\schema\\',
'logic': '\\test\\backend\\logic\\src\\main\\java\\org\\derbanz\\test\\logic\\',
'commonService': '\\test\\backend\\service\\common\\src\\main\\java\\org\\derbanz\\test\\commonservice\\',
'uiService': '\\test\\backend\\service\\ui\\src\\main\\java\\org\\derbanz\\test\\uiservice\\'
}
domainfile_generator.run(csv, paths)
Metadata
Release files for Banz-domainfile-generator 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| banz_domainfile_generator-1.1.0.tar.gz | 37.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| banz_domainfile_generator-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 161.5 kB
Release files / banz_domainfile_generator-1.1.0.tar.gz
| Download URL | banz_domainfile_generator-1.1.0.tar.gz |
|---|---|
| Size | 37.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bc76cdf6efcbcaab60c72de52748a8fc5f59b4b742b6aa5edb7636db756a6a4
|
|
BLAKE2b-256 checksum How to use checksums |
3697d90ac5ee41d305bf3a10a9357d6bd70124c13a00b54cf14e1b3fcb810a67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / banz_domainfile_generator-1.1.0-py3-none-any.whl
| Download URL | banz_domainfile_generator-1.1.0-py3-none-any.whl |
|---|---|
| Size | 123.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8cc1dad933f262734a3615974f63955debcf4aef581aac34a43cbcaa5d08212
|
|
BLAKE2b-256 checksum How to use checksums |
bcd3d083e4c0eb317579b6b99d921a61e6d4e0558d8a8cca3b9f8cae911f93cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for Banz-domainfile-generator 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.