Skip to main content

Python package to consume SPEC SA and third-party apps

Project description

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 :sunglasses: -.

Why use SPEC-Utils?

  • :zap: Fast to code: Increase the speed to develop integrations features by about 200% to 300%. *
  • :x: Fewer bugs: Reduce about 40% of human (developer) induced errors. *
  • :bulb: Intuitive: Great editor support. Completion everywhere. Less time debugging.
  • :nerd_face: Easy: Designed to be easy to use and learn. Less time reading docs.
  • :part_alternation_mark: 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 :heavy_check_mark: NT6AsyncClient
specmanagerapi :heavy_check_mark: SMAPIAsyncClient
visma :heavy_check_mark: VismaAsyncClient
certronic :heavy_check_mark: CertronicAsyncClient
wdms :x: WDMSClient
exactian :x: :x:
specmanagerdb :x: :x:

License

This project is licensed under the terms of the GNU GPLv3 license.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spec_utils-0.34.16.tar.gz (53.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spec_utils-0.34.16-py3-none-any.whl (78.6 kB view details)

Uploaded Python 3

File details

Details for the file spec_utils-0.34.16.tar.gz.

File metadata

  • Download URL: spec_utils-0.34.16.tar.gz
  • Upload date:
  • Size: 53.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/5.15.154+

File hashes

Hashes for spec_utils-0.34.16.tar.gz
Algorithm Hash digest
SHA256 d79138346ac22eee1c015ff895c2796a08eb6194a0b973335767fa3a4adffae6
MD5 8865bbed2ac736546a4c2b2e78519ff0
BLAKE2b-256 d5412befd4a282b00c738bfad43d37e52afc4e151e0d504878440c04c1d6d46c

See more details on using hashes here.

File details

Details for the file spec_utils-0.34.16-py3-none-any.whl.

File metadata

  • Download URL: spec_utils-0.34.16-py3-none-any.whl
  • Upload date:
  • Size: 78.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/5.15.154+

File hashes

Hashes for spec_utils-0.34.16-py3-none-any.whl
Algorithm Hash digest
SHA256 1be0cb20b45c6ab5fafbd23802529c8e3d1089ac5dae21803a26e3df1418b307
MD5 b021a295b2d3a363990833612ca412c2
BLAKE2b-256 ddd25e1289142b336abba01e0511436c73491c4322cf5006719a8755fc03b06a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page