Pocoglot generates POCOs in multiple languages from a YAML definition file.
Project description
Pocoglot
Pocoglot is a simple command line application that takes an entity definition file and generates code in one of many supported languages. If you are writing multi-tier applications in multiple languages this tool can save you from a lot of repeated typing and out-of-sync models.
Supported languages
Golang • Python 3 • PHP 8 • C# • Typescript • MySQL
Usage
$ pocoglot --help
Usage: pocoglot [OPTIONS]
Options:
-from, --from-file PATH Path to the source YAML file containing
definitions [required]
-to, --to-file PATH Path to where the targe code is going to be
generated [required]
-lang, --to-language [java|php8|typescript|golang|csharp|python3]
Language used for the generated code
[required]
-override, --override-file PATH
Path to the YAML file containing overrides
--help Show this message and exit.
Support
- Please star this project on Github
- Report any issues and feature requests
- Add pull requests to support new languages
Related projects
License
This software is published under the permissive MIT license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pocoglot-0.9.1.tar.gz.
File metadata
- Download URL: pocoglot-0.9.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e17da4eb1f900fff4425c32011ce032c60ec522d6c513d36c7e9b138711c5c
|
|
| MD5 |
afcaa04d4d73e8907a63bcda69bf9dbd
|
|
| BLAKE2b-256 |
771b6bf75a545de567a7295268fd7d92de708bf448ab52435d6bccda5772ebe2
|
File details
Details for the file pocoglot-0.9.1-py3-none-any.whl.
File metadata
- Download URL: pocoglot-0.9.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435cd2680bccd7b4908e488f80d75875c0dd8ebacc47e25723f02b328a49332b
|
|
| MD5 |
2fa397688402f938340232fb828c9d70
|
|
| BLAKE2b-256 |
bbfb625728accf653571d04cd14e87c9ac366673d79b11c2eba8ce3ca1838de5
|