sint
Developer Guide
Setup
# create conda environment
$ mamba env create -f env.yml
# update conda environment
$ mamba env update -n sint --file env.yml
# $ mamba env update -n sint --file env.mac.yml
Install
pip install -e .
# install from pypi
pip install sint
nbdev
# activate conda environment
$ conda activate sint
# make sure the sint package is installed in development mode
$ pip install -e .
# make changes under nbs/ directory
# ...
# compile to have changes apply to the sint package
$ nbdev_prepare
Note: it might be useful to use the following snippet to enable hot reloading:
%load_ext autoreload
%autoreload 2
Publishing
# publish to pypi
$ nbdev_pypi
# publish to conda
$ nbdev_conda --build_args '-c conda-forge'
Usage
Installation
Install latest from the GitHub repository:
$ pip install git+https://github.com/dsm-72/sint.git
or from conda
$ conda install -c dsm-72 sint
or from pypi
$ pip install sint
Examples
sign.P, sign.Z, sign.N
(sign(int=1, chr='P', sym='+', syn={'positive', '+', 'pos'}),
sign(int=0, chr='', sym='', syn=set()),
sign(int=-1, chr='N', sym='-', syn={'negative', 'neg', '-'}))
sint(2), sint(0), sint(-2), sint('2'), sint('0'), sint('-2'), sint('+'), sint('0'), sint('-')
(1, 0, -1, 1, 0, -1, 1, 0, -1)
sint(2).chr, sint(2).sym, sint(0).chr, sint(0).sym, sint.tochr(2)
('P', '+', '', '', 'P')
Metadata
Release files for sint 0.0.10
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 |
|---|---|---|---|---|
| sint-0.0.10.tar.gz | 14.2 kB | Without provenance | Details for sint-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sint-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for sint-0.0.10-py3-none-any.whl |
Total release size: 29.6 kB
Release files / sint-0.0.10.tar.gz
| Download URL | sint-0.0.10.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26dfb69530fbe7e19a36e7fb5d07d05a3ef104c901e16525108fa2a001a43bfd
|
|
BLAKE2b-256 checksum How to use checksums |
7442c97f540655673444211478694b34a0e6b924d35ec4a883bbba07a5c288c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / sint-0.0.10-py3-none-any.whl
| Download URL | sint-0.0.10-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2ad984cc9a3a29530506cff3e23a4840815b28d61adaa2e0c4a22202d32ceb7
|
|
BLAKE2b-256 checksum How to use checksums |
0235cd2755c09a87138b13f3dc1c6823b840b351fcd5ed616d85a01bf8e3ece2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for sint 0.0.10
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.