That is simple apikey generator, which could be used in web projects.

Cixo Develop df9fff711e Make it more useable. 6 luni în urmă
source be2e964344 First final release. 6 luni în urmă
tests be2e964344 First final release. 6 luni în urmă
.gitignore bc72c01059 Initial commit 6 luni în urmă
LICENSE bc72c01059 Initial commit 6 luni în urmă
README.md df9fff711e Make it more useable. 6 luni în urmă
pyproject.toml be2e964344 First final release. 6 luni în urmă

README.md

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