Skip to main content

A thin wrapper of PyYaml to convert Python objects to YAML and back.

Project description

Convert Python objects to YAML and back.

Build Status Tests Status codecov Documentation PyPI

This is the readme for developers. The documentation for users is available here: https://smarie.github.io/python-yamlable/

Want to contribute ?

Contributions are welcome ! Simply fork this project on github, commit your contributions, and create pull requests.

Here is a non-exhaustive list of interesting open topics: https://github.com/smarie/python-yamlable/issues

Running the tests

This project uses pytest.

pytest -v yamlable/tests/

You may need to install requirements for setup beforehand, using

pip install -r ci_tools/requirements-test.txt

Packaging

This project uses setuptools_scm to synchronise the version number. Therefore the following command should be used for development snapshots as well as official releases:

python setup.py egg_info bdist_wheel rotate -m.whl -k3

You need to generate code before packaging.

You also may need to install requirements for setup beforehand, using

pip install -r ci_tools/requirements-setup.txt

Generating the documentation page

This project uses mkdocs to generate its documentation page. Therefore building a local copy of the doc page may be done using:

mkdocs build

You may need to install requirements for doc beforehand, using

pip install -r ci_tools/requirements-doc.txt

Generating the test reports

The following commands generate the html test report and the associated badge.

pytest --junitxml=junit.xml -v yamlable/tests/
ant -f ci_tools/generate-junit-html.xml
python ci_tools/generate-junit-badge.py

PyPI Releasing memo

This project is now automatically deployed to PyPI when a tag is created. Anyway, for manual deployment we can use:

twine upload dist/* -r pypitest
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yamlable-0.6.0.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yamlable-0.6.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file yamlable-0.6.0.tar.gz.

File metadata

  • Download URL: yamlable-0.6.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6

File hashes

Hashes for yamlable-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d764c7d4f6e09f379fb94f7662f668c56b690467e04b850e066093641c5dd188
MD5 a997cf2f7ee295ffe66160454ceaef19
BLAKE2b-256 efc57ea94766660cec41658b5378952685f3b381b23e5d0eb8dc46010f88fcfb

See more details on using hashes here.

File details

Details for the file yamlable-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: yamlable-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6

File hashes

Hashes for yamlable-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bc1dddfe3b28580f7f19588dd2803ac86b64809a69fef41e3448abad653021
MD5 5564c9c74d9b04660e6ce986cf350cfd
BLAKE2b-256 e77ce0d66cef2e2d5736067ab4558d6107c0bc0e09d193490026483a409041f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page