Skip to main content

No project description provided

Project description

Stormkey

Introduction

Stormkey is a Python library that provides a convenient interface for managing API keys for your applications. Whether you need to create, update, verify, or delete API keys, Stormkey simplifies the process with easy-to-use methods.

Installation

You can install Stormkey via pip:

pip install stormkey

Usage

To use Stormkey in your Python project, first import the Stormkey class and initialize it with your application ID, service key, and optional host URL.

from stormkey import Stormkey

app_id = "your_application_id"
service_key = "your_service_key"
host = "https://api.stormkey.app"  # Optional host URL

stormkey = Stormkey(app_id, service_key, host)

Methods

  • create(name: str, ownerId: str) -> str: Creates a new API key with the specified name and owner ID.
  • update(name: str, ownerId: str) -> str: Updates the specified API key with a new name and owner ID.
  • verify(key: str) -> dict: Verifies the validity of the provided API key.
  • delete(name: str) -> str: Deletes the API key with the specified name.

Examples

Here's a simple example demonstrating how to use Stormkey to create a new API key:

key_name = "MyAPIKey"
owner_id = "user123"

key = stormkey.create(key_name, owner_id)
print("New API Key:", key["secretKey"])

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

stormkey-0.1.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

stormkey-0.1.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file stormkey-0.1.4.tar.gz.

File metadata

  • Download URL: stormkey-0.1.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for stormkey-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ec553693a9995513f3e9a987c5e983bc4a9ec7a35435f83f46aa7d2f266b91bc
MD5 2c3e0e56977fc3efcb48cc70925d0ff0
BLAKE2b-256 2ac52abb153c55a1286f48e51b61330057df111e7f9d7867c701de042d5a215e

See more details on using hashes here.

File details

Details for the file stormkey-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: stormkey-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for stormkey-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3afccd6e917ee5443e37c4660ef810af4a4a9e7d8f609d27f7b4982964a2049f
MD5 d0ff4450cd7137cd200e0c003e76c1bf
BLAKE2b-256 6e64c497c84907ef709130232d77b8de670dc973b2ba9cc101d6ffd637e97e25

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