Skip to main content

CashCtrl API Client

Project description

cashctrl

Unofficial python client for the cashctrl api v1

The goal was to make it easy, easier, easiest :smile::

import cashctrl
cc=cashctrl.Client()
people=cc.person.list()

Quickstart

1. Create role

According to the [principle of least privilegue](https://en.wikipedia.org/wiki/Principle_of_least_privilege it is recommended to create a seperate role for the admin user.

Then you can give it the exact permission it needs:add-role

2. Create API-User

Now we can create the api user and copy the api-key: add-user

3. Add credentials to your environment

Create the .env file and add your api-key, organization and language:

cp .env.example .env && open .env

Make sure your .env file is in a safe place

4. have fun

from cashctrl_py import CashCtrlClient
from icecream import ic

cc = CashCtrlClient()
people = cc.person.list()
ic(people)

Contribute

Submit a Pull Request

There is still much work to do 😔

If you want to contribute, please fork the repository and create a pull request. gh repo fork <USER>/cashctrl-py

Dynamic install

For development you can install this library dynamically with the following command:

pip3 install -e /path/to/cashctrl-py

Now you can import it normally in other projects and changes in cashctrl-py get reflected immediately in all importing projects.

Swagger

There is an unofficial swagger.json file to help with development. You can export it into your http-client i.e. insomnia.

IDE

The Project was developed in Vscode. You can install the recommended extensions when you first open the project:

install-extensions

Upload

  1. increment version number
  2. upload:
./upload.sh

Also see: Package Tutorial

.env

Make sure you don't put a .env file in the sources folder. It is dangerous because all projects that have importet cashctrl-py with pip -e will then use that file instead of their own...

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

cashctrl-0.0.13.tar.gz (215.6 kB view details)

Uploaded Source

Built Distribution

cashctrl-0.0.13-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file cashctrl-0.0.13.tar.gz.

File metadata

  • Download URL: cashctrl-0.0.13.tar.gz
  • Upload date:
  • Size: 215.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cashctrl-0.0.13.tar.gz
Algorithm Hash digest
SHA256 90eddb80db97c2ed657dabfd2ce7cc4bb9cdea9ab5df42b65c9489b0eb531647
MD5 c693f13756a9816eb4fbfc4d4d482265
BLAKE2b-256 ad1c0937da07db3d865a26f01549455889129cd7d0be0d02321089e475e457b0

See more details on using hashes here.

File details

Details for the file cashctrl-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: cashctrl-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for cashctrl-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 0ba469e23100c0d18484960232a1b5578b45ea1f63d8e0feef2a1a0394aa9dfa
MD5 f66466e6d962bc8e1855fa80278a2fb7
BLAKE2b-256 2242c045500dcc92c6f0904517c99145b515cb83a896a4f9c0178a5c53cf08d5

See more details on using hashes here.

Supported by

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