Skip to main content
https://i.ibb.co/tCrVfj6/readthedocs.png

Installation

To install python-amcards, simply run this command in your terminal:

$ pip install python-amcards

Usage

All interactions with the AMcards API are made through the AMcardsClient class.

First, create an AMcardsClient as follows:

>>> from amcards import AMcardsClient
>>> client = AMcardsClient('youraccesstoken')

Here 'youraccesstoken' will be replaced with a string containing your AMcards access token. You can generate one here.

Now we can perform all operations supported by the client.

Let’s try using send_card to send a card to a single recipient:

>>> res = client.send_card(
...     template_id='123',
...     initiator='myintegration123',
...     shipping_address={
...         'first_name': 'Ralph',
...         'last_name': 'Mullins',
...         'address_line_1': '2285 Reppert Road',
...         'city': 'Southfield',
...         'state': 'MI',
...         'postal_code': '48075',
...         'country': 'US'
...     }
... )
>>> res.card_id
1522873
>>> res.total_cost
442
>>> res.message
'Card created successfully!'
>>> res.user_email
'example@example.com'
>>> res.shipping_address
{'last_name': 'Mullins', 'address_line_1': '2285 Reppert Road', 'first_name': 'Ralph', 'country': 'US', 'state': 'MI', 'postal_code': '48075', 'city': 'Southfield'}

The AMcardsClient supports many more operations, for full documentation see Read the Docs.

Metadata

Release files for python-amcards 1.7.6

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

Source distribution (sdist)

Source distribution for python-amcards 1.7.6
File Size Uploaded Provenance Actions
python_amcards-1.7.6.tar.gz 22.4 kB Without provenance Details for python_amcards-1.7.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-amcards 1.7.6
File Interpreter ABI Platform Actions
python_amcards-1.7.6-py3-none-any.whl Python 3 none any Details for python_amcards-1.7.6-py3-none-any.whl

Total release size: 45.4 kB

Release files / python_amcards-1.7.6.tar.gz

Download URL python_amcards-1.7.6.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c8bf7b7ce1ebc7d804efe5d265785045aaf4745342b98c19b32355fdd179376b
BLAKE2b-256 checksum
How to use checksums
fee57967f212cc2a70acb516825fe51f868ce8a19e64e2cc75484c49113e0290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / python_amcards-1.7.6-py3-none-any.whl

Download URL python_amcards-1.7.6-py3-none-any.whl
Size 23.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74792034b4b64aaf2336040145a6865f8489dba4cb9cee01db310113259d8383
BLAKE2b-256 checksum
How to use checksums
4a8251427b4d3a5cbe45ee3324f1fd7739a2ee93e09c00c7d1b105faa84b75b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for python-amcards 1.7.6

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.7.6 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