Pre-release
This release is a pre-release and may not be stable for production use.
Operator Information Library
The library to get information about various operators in Python.
Install through pip:
pip install o
Start off my importing the module:
import o
Use the get method to get the Operator object for a specific
operator, provided as a string.
operator = o.get("+=")
print(operator)
>>> "<class 'Operator(operator='+=', name='addition assignment', type=AssignmentOperatorType, methods=['__iadd__'], function=operator.iadd)'>"
Use the various attributes to retrieve information for the operator.
operator.methods
>>> ['__iadd__']
str(operator.type)
>>> "assignment"
isinstance(operator.type, o.AssignmentOperatorType)
>>> True
Or, you can use the Operator object directly. Be careful, an unknown operator raises an UnknownOperator exception.
License
This repo is under the MIT license.
Metadata
Release files for o 0.0.2b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| o-0.0.2b2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| o-0.0.2b2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / o-0.0.2b2.tar.gz
| Download URL | o-0.0.2b2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77b1667be6da65a64420ee07ac937ace3de94bdd2eb75febc874ac71e2a92787
|
|
BLAKE2b-256 checksum How to use checksums |
a6d7a9da7b25d570cabd5edba7801b2ecaf65bdc9662cea1a0870375286c3e57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5
|
Release files / o-0.0.2b2-py3-none-any.whl
| Download URL | o-0.0.2b2-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b16252420d2526feb9b00af8de7e6baa7488f71e5a5b9661efb28440bac39168
|
|
BLAKE2b-256 checksum How to use checksums |
ae6b0cdb02b84702d931bc1475c5c40ccf346b20ce16fb424eba999ea978e811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5
|