Skip to main content

SythonLab Cubacel SDK

A Python library for integration with Cubacel.

Installation

  pip install sythonlab-cubacel-sdk

Environment variables

CUBACEL_HOST: Cubacel API access URL.

CUBACEL_USERNAME: Username for authentication.

CUBACEL_PASSWORD: Password for authentication.

CUBACEL_SIM_TUR_ID: ID provided by Cubacel for the sale of tourist SIM Tur cards.

CUBACEL_MIN_BATCH_SIMTUR: Minimum number of SIM Tur cards allowed in a batch.

CUBACEL_MAX_BATCH_SIMTUR: Maximum number of SIM Tur cards allowed in a batch.

CUBACEL_ENVIRONMENT: dev or prod.

CUBACEL_VERBOSE_ENABLED: 0 or 1. Allows displaying request and response data in the console.

How to use?

from sythonlab_cubacel_sdk.sdk import CubacelSDK

cubacel = CubacelSDK()
# custom_config_file: Optional parameter, specifies the path to a .json file to save the configuration.

cubacel.ACTION(...)

Available actions

  • sale_sim_tur: Execute a SIM Tur sale transaction.
  • get_services: Get services list.
  • get_transaction_id: Get new transaction ID.
  • get_provinces: Get provinces list.
  • get_nationalities: Get nationalities list.
  • get_offices: Get commercial offices list.
  • get_sale: Get information about a sale.
  • recharge: Execute a recharge to a mobile number.
  • change_password: Change password.
  • request_batch: Request a batch of tourist SIM cards.
  • get_batch_sale: Get information about a batch of tourist SIM cards.
  • cancel_batch_sale: Cancel a batch of tourist SIM cards.
  • sale_sim_tur_card: Add to the sale of a tourist SIM card from a batch.
  • cancel_sale: Cancel a sale.

Metadata

Release files for sythonlab-cubacel-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sythonlab-cubacel-sdk 1.0.0
File Size Uploaded Provenance Actions
sythonlab_cubacel_sdk-1.0.0.tar.gz 8.3 kB Without provenance Details for sythonlab_cubacel_sdk-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sythonlab-cubacel-sdk 1.0.0
File Interpreter ABI Platform Actions
sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl Python 3 none any Details for sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl

Total release size: 16.8 kB

Release files / sythonlab_cubacel_sdk-1.0.0.tar.gz

Download URL sythonlab_cubacel_sdk-1.0.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b7012e0c09bfb8d35f675ebf54a4ddd55a188605c4331b85333dff56aa89e59a
BLAKE2b-256 checksum
How to use checksums
b3f3bb163131c75639f819d8909719fbe91d476425f60102a512cb4d99deeb49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl

Download URL sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e81956c3e1e6bd9d17a75fcfa23058e99804224bf8c20dd6b8417f94d914dfb
BLAKE2b-256 checksum
How to use checksums
b8012825b39097914a779d4a058228d11ad4861524747d381b6858e25012827a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for sythonlab-cubacel-sdk 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page