Python implementation for cosmos.proto
Currently, this repo contains generated python files for Terra 2 and Osmosis Blockchains supported Modules.
Setup
- Create virtual environment
$ python3 -m venv env
$ source env/bin/activate
- Install poetry
$ pip install poetry
- Install packages,
$ pip install poetry
$ poetry install
If you encounter "version solving failed." error, try poetry add <package_name>, followed by poetry lock and then poetry install
Generating python files for new proto files
We use betterproto[compiler] for generating python code from proto files, and it is party a manual process. Here are a few pointers to help you through the process -
cdinto each module and make sure all *.proto files are in one place.- For each .proto file, check the import paths and update them if needed.
- Once the paths are corrected, use the following command to generate python files.
$ protoc -I . --python_betterproto_out=<OUTPUT DIR NAME> <PROTO FILE NAMES>
For eq - protoc -I . --python_betterproto_out=py genesis.proto query.proto gov.proto feetoken.proto
To install betterproto[compiler], use -
pip install "betterproto[compiler]"
TO DO : Update the scripts
Metadata
Release files for cosmos-proto 0.0.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 | Actions |
|---|---|---|---|---|
| cosmos-proto-0.0.0.tar.gz | 170.2 kB | Without provenance | Details for cosmos-proto-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cosmos_proto-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for cosmos_proto-0.0.0-py3-none-any.whl |
Total release size: 414.6 kB
Release files / cosmos-proto-0.0.0.tar.gz
| Download URL | cosmos-proto-0.0.0.tar.gz |
|---|---|
| Size | 170.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fec2a2450f3ee69d3738bcc895603ceeab492241d6f2e539ea92d10f76ffe35
|
|
BLAKE2b-256 checksum How to use checksums |
317c91f8977a283971686614438d4b364b93098c145db9c8bd4c45f9f12ee5ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.6 Darwin/21.5.0
|
Release files / cosmos_proto-0.0.0-py3-none-any.whl
| Download URL | cosmos_proto-0.0.0-py3-none-any.whl |
|---|---|
| Size | 244.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
feeb5441fa4a00b5eb198a312e4cf56047f2be99d3604ed55b6ace6f03fecfee
|
|
BLAKE2b-256 checksum How to use checksums |
0969276023a90df3675c19e4ce0aba9bde7038ad99e72474c86aa906b1e8e444
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.6 Darwin/21.5.0
|
Security for cosmos-proto 0.0.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.