Skip to main content

Python wrapper for Kard's private API

Project description

Kard Private Api

License: GPL v3
Python wrapper of Kard Private Api

Made with the help of the awesome open-source tool HTTP Toolkit for trafic sniffing ❤️

This project is a refactored version of kard-private-api

Installation

pip install pyKard

Usage

from kard_private_api import Kard

myKard = Kard()
myKard.authenticate(forceApiAuth=False)

...

That's all! You're all setup to play with Kard private API.
I recommend you to start with some of the examples here.

FAQ

How does it login to my Kard account?

On your first (or clean) login, the library will generate a unique vendor identifier that will be linked to your session.
Then, a request will be made to Kard, which in return will either ask for an OTP code or your PIN code.

Once successfully authenticated, we have access to an accessToken and a refreshToken which are your account sesame. These as well as your vendor identifier are saved on your computer for later use.

Where my credentials are saved?

By default, they are saved in a file named .kard-login_YOURPHONENUMBER-settings.json located in your home directory.
(C:\\Users\%username%\ on Windows or ~ on Linux/MacOs)

License

This repository and all of its content is under the GNU GPLv3 license.

Disclaimer

This software is provided as is, I shall not, and will not be liable for any misuse or unauthorised use, leading or not to damage to any third-party.

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

pyKard-3.0.1.tar.gz (30.7 kB view details)

Uploaded Source

File details

Details for the file pyKard-3.0.1.tar.gz.

File metadata

  • Download URL: pyKard-3.0.1.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for pyKard-3.0.1.tar.gz
Algorithm Hash digest
SHA256 68dd34852a7652a671c4c59312f76bb758a7d289df049bcbc6ced36341a95e7d
MD5 41ef01d9a04bdceb12518dd5a6fa365a
BLAKE2b-256 6a2e49a76bfee58c1cb371f666786547c2a31d18da11b53c4562ff82c7cbc340

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