Helpers for handling chemical formulas in Python
Project description
Helpers for handling chemical formulas in Python. Mostly adopted from work of Christoph Gohlke. Added methods that are useful for mass spec data analysis.
Depends on Open Babel and its Python bindings for handling InChI strings.
Development
Development requires Docker and Make on your host system. Everything else, including Open Babel, is taken care of inside the Docker containers.
Spin up your container using the provided docker-compose.yml file and Makefile by running make image. This creates an image with a correct git configuration for your user, which makes it easy to release. All of the commands you should need to run are defined the Makefile as targets. All of the targets except for image, are meant to be run inside the Docker container, but can be run from the host machine by having -ext appended to them. For example, to run tests, you could either call make test from a shell inside the container, or make test-ext from the host.
This project supports both Python 2 and Python 3. To test Python 3, make run the make test and make test-ext with the TOXENV environment set to py3, e.g.:
TOXENV=py3 ./make test-ext
All pull requests are run through the Travis CI process specified in .travis.yml and must pass all unit and doc tests in Python 2 and Python 3 before being accepted.
Deployment
Deployment of tagged commits happens to PyPI automatically via Travis CI. To bump and deploy a new version directly, you must have access to write to the master branch. Run make bump/[foo]-ext, where [foo] is major, minor, or patch. Then git push origin --tags master. If you do not have access to the master branch, do the same thing, but in a separate branch, and make a pull request.
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
Built Distribution
File details
Details for the file pychemy-0.5.0.tar.gz
.
File metadata
- Download URL: pychemy-0.5.0.tar.gz
- Upload date:
- Size: 601.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49cae218d5442e88929cf784a6b4ceda7916d0fae502bc114c584ff3a65d000 |
|
MD5 | 26f2dcb8c7886296f37c14b4dc511c81 |
|
BLAKE2b-256 | 6d9852d0349b47efc08f5957c34abf8482b92d703e890e916272fb1efe6c4aff |
File details
Details for the file pychemy-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pychemy-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 638.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e17c7c85281026e093547f50de69274b2f9a42fd797823491b22099020ebb8 |
|
MD5 | 3139bf86e6b071861784a54aa2700a92 |
|
BLAKE2b-256 | a9f691486d01c5699080ce91e2a4b967cfc8a8b7702e0bd434610f6f0f79782f |