SPEC Utils
SPEC-Utils is a set of connectors to consume Grupo SPEC and third-party applications from Python.
SPEC-Utils is used by Grupo SPEC within netSync, but it can be used by anyone in their integration projects -or any other purpose that they want 😎 -.
Why use SPEC-Utils?
- ⚡ Fast to code: Increase the speed to develop integrations features by about 200% to 300%. *
- ❌ Fewer bugs: Reduce about 40% of human (developer) induced errors. *
- 💡 Intuitive: Great editor support. Completion everywhere. Less time debugging.
- 🤓 Easy: Designed to be easy to use and learn. Less time reading docs.
- 〽️ Short: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.
* Estimation based on tests on an internal development team, building production applications.
For more info and help, visit the SPEC-Utils Repository and SPEC-Utils Documentation
Requirements
Python 3.8+
SPEC-Utils stands on shoulders of:
- requests: For the synchronous HTTP requests.
- aiohttp: For the asynchronous HTTP requests.
- pandas: For the database features.
- SQLAlchemy: For the database connections.
- pydantic: For the data parts.
Install
Can use:
pip install spec-utils
Or:
python -m pip install spec-utils
Example
Net-Time
Import module
from spec_utils import nettime6 as nt6
Client settings
URL = '<your-nettime-url>'
USERNAME = '<your-username>'
PWD = '<your-password>'
Using client
with nt6.Client(url=URL, username=USERNAME, pwd=PWD) as client:
print(client.get_employees())
See out...
{
'total': 2,
'items': [{'id': 1, 'nif': '123789456'}, {'id': 2, 'nif': '987321654'}
]}
Using async client
async with nt6.AsyncClient(url=URL, username=USERNAME, pwd=PWD) as client:
print(await client.get_employees())
See out...
{
'total': 2,
'items': [{'id': 1, 'nif': '123789456'}, {'id': 2, 'nif': '987321654'}
]}
Async coverage
| Module | Async support | Index name |
|---|---|---|
| nettime6 | ✔️ | NT6AsyncClient |
| specmanagerapi | ✔️ | SMAPIAsyncClient |
| visma | ✔️ | VismaAsyncClient |
| certronic | ✔️ | CertronicAsyncClient |
| wdms | ❌ | WDMSClient |
| exactian | ❌ | ❌ |
| specmanagerdb | ❌ | ❌ |
License
This project is licensed under the terms of the GNU GPLv3 license.
Metadata
Release files for spec-utils 0.35.17
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 |
|---|---|---|---|---|
| spec_utils-0.35.17.tar.gz | 54.5 kB | Without provenance | Details for spec_utils-0.35.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spec_utils-0.35.17-py3-none-any.whl | Python 3 | none | any | Details for spec_utils-0.35.17-py3-none-any.whl |
Total release size: 134.3 kB
Release files / spec_utils-0.35.17.tar.gz
| Download URL | spec_utils-0.35.17.tar.gz |
|---|---|
| Size | 54.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ee117285d3f70014cbc575134c97033b664ec07b6dd992f20af8de25d3ed413
|
|
BLAKE2b-256 checksum How to use checksums |
c30d8faf5aa6b72cc3176f520adb6805980db4a0298673bc6d2a501494d4fe77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.12 Linux/5.15.154+
|
Release files / spec_utils-0.35.17-py3-none-any.whl
| Download URL | spec_utils-0.35.17-py3-none-any.whl |
|---|---|
| Size | 79.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1bee698c0e1ec6a0c71f107aa2827446de6030fde4c8c361d5ab8887fd00700
|
|
BLAKE2b-256 checksum How to use checksums |
e0fba04c5ac29826a6458457ac04a4c56a3754692090349132a3cfb05a4ec125
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.12 Linux/5.15.154+
|
Security for spec-utils 0.35.17
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.