https://github.com/reconmap/pocoglot
Generate POCOs in multiple languages from a single definition file
https://github.com/reconmap/pocoglot
code-generation csharp entity golang model php poco python typescript yaml
Last synced: 7 months ago
JSON representation
Generate POCOs in multiple languages from a single definition file
- Host: GitHub
- URL: https://github.com/reconmap/pocoglot
- Owner: reconmap
- License: mit
- Created: 2022-12-04T18:05:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-03T22:20:43.000Z (over 1 year ago)
- Last Synced: 2024-04-13T23:09:46.923Z (over 1 year ago)
- Topics: code-generation, csharp, entity, golang, model, php, poco, python, typescript, yaml
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](docs/golang.md) • **Python 3** • [PHP 8](docs/php.md) • **C#** • [Typescript](docs/typescript.md) • **MySQL**
## Usage
```shell
$ 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
- [Quicktype](https://quicktype.io/)
## License
This software is published under the permissive [MIT license](LICENSE.md)