PTHat
Pulse Train HAT Python API. This is a Python API to control the PTHAT from CNC Design Limited
Build
To build the project files:
python setup.py sdist bdist_wheel
TestPyPI
To upload the project the first time until a token is obtained. This will prompt for username and password.
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
To upload the project to TestPyPI:
twine upload -r testpypi dist/*
To install this package from TestPyPI:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pthat
To view the project on TestPyPI: https://test.pypi.org/project/pthat/
Token
Token to upload this project to TestPyPI:
Username: __token__
Password: pypi-AgENdGVzdC5weXBpLm9yZwIkZjRjOWE2NDctYTI4MC00N2M0LWI1NDEtZmJjNTcyZTVjOTI4AAI2eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbInB0aGF0Il19LCAidmVyc2lvbiI6IDF9AAAGIEfC11_SYnhL6S5C2xfRD2-HcgZ-iM070-FNwoJPf1ls
Keyring
To install the tokens to a local keyring do the following. Each command will prompt for the password. Just copy and paste the token.
keyring set https://upload.pypi.org/legacy/ __token__
keyring set https://test.pypi.org/legacy/ __token__
Pypi
To upload the project the first time until a token is obtained. This will prompt for username and password.
twine upload dist/*
To upload the project to pypi:
twine upload -r pypi dist/*
To install this package from pypi:
pip install pthat
Version
When the version is changed, there are currently four places the version number must be changed
- pthat.py - _version variable
- setup.py - version parameter
- CHANGELOG.md
- docs/conf.py - version and release variables
TODO
- Example for changing direction after n number of revolutions
- Example of reading pulse count and printing number of revolutions
- Async sending and reading the serial device
- Complete response parsing method
Release files for pthat 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pthat-1.0.1.tar.gz | 27.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pthat-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.7 kB
Release files / pthat-1.0.1.tar.gz
| Download URL | pthat-1.0.1.tar.gz |
|---|---|
| Size | 27.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
031250cc2bbaddb42fc6fb63eb037041e427516e818613a6e21d397bb4f228d1
|
|
BLAKE2b-256 checksum How to use checksums |
3399bcda0f954c6d308804a9c42c6337a3ca9dfa3fbb91ed16461aa3fb60d657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
|
Release files / pthat-1.0.1-py3-none-any.whl
| Download URL | pthat-1.0.1-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3079fd19716fea460388978c58c441ad778173e859c81768560192b230c2a2d5
|
|
BLAKE2b-256 checksum How to use checksums |
1ca6c13681c4a48c03c40de28842df85380a0366ee956e574abf58396a893ed4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9
|