eseries
The E-series is a system of preferred numbers used with electronic components such as resistors and capacitors. For example, the E6 series contains six values (10, 15, 22, 33, 47, 68) which cover a one-order of magnitude range of values (one decade) from 10 to 99. These base values repeat again to cover the next decade from 100 to 999, as 100, 220, 330, 470, and 680.
This eseries library is useful for selecting values from the standard E3, E6, E12, E24, E48, E96 and E192 decades.
Status
Installation
The eseries package is available on the Python Package Index (PyPI):
The package supports Python 3 only. To install:
$ pip install eseries
Python Interface
For full help:
>>> import eseries >>> help(eseries)
In the meantime, here are some highlights.
To find the nearest E24 value to 319 use:
>>> from eseries import find_nearest, E24 >>> find_nearest(E24, 319) 330
To find the next value greater-than or equal-to 184 in the E96 series use:
>>> from eseries import find_greater_than_or_equal, E96 >>> find_greater_than_or_equal(E96, 184) 187
To find a few values around the specified value, use:
>>> from eseries import find_nearest_few, E24 >>> find_nearest_few(E24, 5000) (4700, 5100, 5600)
Command-Line Interface
There’s also a handy command-line interface. Run eseries --help to see a list of commands:
$ eseries --help eseries Usage: eseries [options] <command> [<args> ...] Options: -h --help Show this screen. -v --verbose Use verbose logging Available commands: ge gt help le lower-tolerance-limit lt nearby nearest range series tolerance tolerance-limits upper-tolerance-limit See 'eseries help <command>' for help on specific commands.
To find a nearby value, use:
$ eseries nearest E24 37726 39e3
If you prefer an SI exponent symbol, supply --symbol or -s:
$ eseries nearest E24 37726 -s 39 k
To show values around the given value, use the nearby command:
$ eseries nearby E48 52e6 -s 48.7 M 51.1 M 53.6 M
To show the smallest value greater than or equal to the given value, use the ge command:
$ eseries ge E48 52e3 -s 53.6 k
To show the upper and lower tolerance limits of a nominal value, use the tolerance-limits command:
$ eseries tolerance-limits E48 35 34.3 35.7
To show all values in an inclusive range, use the range command:
$ eseries range E6 74e-9 34e-6 --symbol 100 n 150 n 220 n 330 n 470 n 680 n 1 µ 1.5 µ 2.2 µ 3.3 µ 4.7 µ 6.8 µ 10 µ 15 µ 22 µ 33 µ
Testing
Testing is performed for all supported versions using tox. You’ll need to ensure that the required Python versions are available in your environment. For example, if you’re using pyenv, do:
$ pyenv local 2.7.18 3.6.12 3.7.9 3.8.1 3.9.1
before running tox:
$ tox
Deployment to PyPI
$ pip install -e ".[dev]" $ bumpversion patch $ python setup.py sdist bdist_wheel $ twine upload --config-file <path>/credentials.pypirc dist/* $ git push origin
Metadata
Release files for eseries 1.2.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 | Provenance | Actions |
|---|---|---|---|---|
| eseries-1.2.1.tar.gz | 14.8 kB | Without provenance | Details for eseries-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eseries-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for eseries-1.2.1-py3-none-any.whl |
Total release size: 25.9 kB
Release files / eseries-1.2.1.tar.gz
| Download URL | eseries-1.2.1.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06122b18141a28ae7758bb42391b163bc42039fd7b91d3633631c0c8fa300e36
|
|
BLAKE2b-256 checksum How to use checksums |
553458ab83a079a0ac5f6883710d84b3095350da5073a4aca0e1d056b57efb6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Release files / eseries-1.2.1-py3-none-any.whl
| Download URL | eseries-1.2.1-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6368216bb4876685a7c58a90d79ea523096b866e531240abc2aa7d6878629377
|
|
BLAKE2b-256 checksum How to use checksums |
e46cbf1eb2d4727a32c83d2bbb57c623bebc448c59dbaf15287c4b62b9ffc295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Security for eseries 1.2.1
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.