Skip to main content

That is API key generator and manager.

Project description

cx-apikey is easy to use and small API keys system.

It could be used to generating API keys, validating them and also works with them in the system. API keys generator use operating system random number generator, tokens have also selected prefixes, size of them could be changed, default its 256 letters.

How simple is it?

First, install it from PyPi.

python -m venv .venv
source .venv/bin/activate
pip install cx-apikey

Then, You can use it in app. Let's generate first API key.

import cx_apikey as apikey

test = apikey.apikey_factory("test").set_size(128).generate()
print(repr(test))

You would see something like that:

API key: "test_1bf6b4320bc893435934ebe634f447f4e2d5076edda950357b95f2
01e98640268cb1d23e571d3a6f9883300eac0605d553dfa662920390a322023441c05"

For more complex usage see project wiki

All pages

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

cx_apikey-2025.11.3.post2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

cx_apikey-2025.11.3.post2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file cx_apikey-2025.11.3.post2.tar.gz.

File metadata

  • Download URL: cx_apikey-2025.11.3.post2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for cx_apikey-2025.11.3.post2.tar.gz
Algorithm Hash digest
SHA256 288503f03c3dfd2364e40b719aa2be4855c856a2aec7565c869b58a1c394befe
MD5 75d33a81891f3aada280a869e892526d
BLAKE2b-256 3b9246d8e984976ea9feec17aa2269ca5c3478a9a4b46631effc31e181cc3635

See more details on using hashes here.

File details

Details for the file cx_apikey-2025.11.3.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for cx_apikey-2025.11.3.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 616a0e68f78374ea9bb8488c7cbfacf9020f1b3de9311d0df105000f7a52a618
MD5 c59ada4f02b57519f8cfbc4e6867ed4a
BLAKE2b-256 b33987d1e1500873e3153819ffaa7345f51f5cee8cf55cb7f6b84329e10a43c1

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