Skip to main content

A python helper for the coinos API

Project description

pycoinos

This package serves as a python toolkit for interacting with coinos.io's API (Coinos API).

Usage

The main entry point for the package is the Client class. This class provides methods for interacting with the Coinos API.

from pycoinos import Client

client = Client("ey...") # your coinos token

The Client class has the following methods:

  • me(): Get your account details and balance.
  • post_invoice(): Create an invoice (lightning) or address (bitcoin).
  • get_invoice(): Fetch an invoice by passing a bitcoin address or lightning payment hash.
  • post_payment(): Send a lightning payment.
  • bitcoin_payment(): Send a bitcoin payment.
  • send(): Send an internal payment to another coinos user.
  • get_payments(): Get all payments sent or received by the current user.
  • set_token(): Update the token for the client.

Changelog

  • v0.1.0: Initial release
  • v0.2.0: Added async support with httpx

License

Copyright (c) 2026 Gaelincho

The pycoinos package is distributed under the MIT License.

Project details


Download files

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

Source Distribution

pycoinos-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pycoinos-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pycoinos-0.2.0.tar.gz.

File metadata

  • Download URL: pycoinos-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pycoinos-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb1af165ddd118a1716a5d8463b222e6cb5acb4ca8e159eba5024a5e11818ddb
MD5 710f065fe8cd21dd0011419e81c8284e
BLAKE2b-256 59c3ef20d0a1889db80e9fb19efbcdb24a86ecc972b4e74202fcd347fcc749f3

See more details on using hashes here.

File details

Details for the file pycoinos-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pycoinos-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pycoinos-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac113d1b9bfed702b83d64c5f3985f99001215609b492575165f5b51e4a3c306
MD5 b7241a1eaf6c4e18baeef5981ad9e41c
BLAKE2b-256 72047616d2ad1dfe3ce094a315916520178e1f4158070ebeca0de26cd41c3cf7

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