Skip to main content

ALFAcoins API Python implementation.

A Python3.6 wrapper around the ALFACoins APIs.

by Arash Fatahzade.

Build Status Coverage Status

Description

alfacoins_api_python is a Python3.6 Library for interacting with ALFAcoins API.

alfacoins_api_python provides cryptocurrency payment integration on your website via ALFAcoins.

alfacoins_api_python allows you to integrate payments with the following cryptocurrencies:

  • Bitcoin (BTC)
  • Ethereum (ETH)
  • XRP (XRP)
  • Bitcoin Cash (BCH)
  • Litecoin (LTC)
  • Dash (DASH)

APIs

  • get_fees
  • get_rate
  • get_rates
  • create_order*
  • order_status*
  • bitsend*
  • bitsend_status*
  • refund*
  • statistics*

*: Private API

Building

You need to have Python 3.6+ in order to use this package. Consider using pyenv for virtual Python 3.6 environment.

pip3.6 install -r requirements_dev.txt
python3.6 setup.py build

Installation

pip3.6 install alfacoins_api_python

Getting Started

Gateway

You can get an instance of ALFACoins class like this:

For public APIs

from alfacoins_api_python import ALFACoins


alfacoins = ALFACoins()

For private APIs

from alfacoins_api_python import ALFACoins


alfacoins = ALFACoins(
  name='shop-name',
  password='password',
  secret_key='07fc884cf02af307400a9df4f2d15490'
)

Create order

result = alfacoins.create_order(
    type='litecointestnet',
    amount=1.2345,
    currency='USD',
    order_id=1,
    options={
        'notificationURL': 'https://example.io/notify',
        'redirectURL': 'https://example.io/redirect',
        'payerName': 'Bob',
        'payerEmail': 'no_reply@alfacoins.com',
        },
    description='This is for test!',
)

Additional information and API documentation is here: ALFAcoins API Reference.

Metadata

Release files for alfacoins-api-python 0.1.3

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

Source distribution (sdist)

Source distribution for alfacoins-api-python 0.1.3
File Size Uploaded Provenance Actions
alfacoins_api_python-0.1.3.tar.gz 6.9 kB Without provenance Details for alfacoins_api_python-0.1.3.tar.gz

Release files / alfacoins_api_python-0.1.3.tar.gz

Download URL alfacoins_api_python-0.1.3.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e4c1ffb6d6f3ddaf48644c1d9053dd8d572d5f5f88f33103015e05608fb7eb38
BLAKE2b-256 checksum
How to use checksums
4e7ff099f61b42e234efec577a21ba8ca0b1f4bc01b64cf46d069ec40c7aa981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.3

Security for alfacoins-api-python 0.1.3

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

0.1.3 This release

1 release file 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