Skip to main content

API for Hype card holders

Project description

🌟 HypeAPI

Unofficial Python module for interacting with the HYPE card API.

📝 Notes

  • HYPE only allows the use of one device at a time. Logging in with this module will disconnect you from the application and vice versa.

Pypi

pip install -U HypeBankAPI

Command Line Interface

hypebankapi supports argparse for command line arguments:

python -m hypebankapi -m EMAIL -b BIRTHDATE [-l LIMIT] [-v]

The module is invoked using the following command-line arguments:

  • -m EMAIL, --email EMAIL: Specifies the email address. It is a required argument.
  • -b BIRTHDATE, --birthdate BIRTHDATE: Specifies the birth date. It is a required argument.
  • -l LIMIT, --limit LIMIT: Limit the number of transactions to fetch from Hype API. Default to 50. It is an optional argument.
  • -v, --verbose: Enables verbose output. It is an optional flag argument.

Tip: If you encountered an error while running the command try python3 -m hypebankapi

🚀 Usage

from hypebankapi import Hype, utils
from getpass import getpass

h = Hype()
h.login(EMAIL, getpass('Hype password: '), BIRTH-DATE) # Change EMAIL and BIRTH-DATE

# Wait for OTP code to arrive via SMS

h.otp2fa(input("OTP: "))

profile = h.get_profile()
balance = h.get_balance()
card = h.get_card()
movements = h.get_movements(limit=50) # change the limit of transactions fetched

utils.save_json(profile, 'profile.json')
utils.save_json(balance, 'balance.json')
utils.save_json(card, 'card.json')
utils.save_json(movements, 'movements.json')

⚠️ Disclaimer

The contents of this repository are for informational purposes and the result of personal research. The author is not affiliated, associated, authorized, endorsed by, or in any way connected with Banca Sella S.p.A., or with its affiliated companies. All registered trademarks belong to their respective owners.

🙏 Acknowledgments

Contributing

Thank you for considering contributing to the HypeAPI project! Please read the Contributing Guidelines for more information on how to contribute.

Code of Conduct

We expect all contributors to adhere to the Code of Conduct. Please read it to understand the behavior we expect from our community members.

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

hypebankapi-1.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

hypebankapi-1.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file hypebankapi-1.1.0.tar.gz.

File metadata

  • Download URL: hypebankapi-1.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for hypebankapi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 76e429ffd10b58fd35118080051c453e5cc55d6b5da5bb5495de758ab49fe7c2
MD5 195b078357fb0026efe14cad86b512f4
BLAKE2b-256 dd3e62e38f73cfe0a87cd24cde9e3bd4ab530bb08e1ab233a65c84d798b20ec7

See more details on using hashes here.

File details

Details for the file hypebankapi-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hypebankapi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for hypebankapi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fcafece078668414780e2552d5834579bedf6aa0316e72093c047b04863ac07
MD5 17f237dbf6f88389667316e7dd5cce97
BLAKE2b-256 856b6cdc6cfb1fb8ab5cb9f77e9518cd193d0198fb4bc78bb3cbb7c8f2d7a44b

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