Skip to main content

A Client package to connect and retrieve api keys from vault serivce called AnarchKey

Project description

AnarchKey Client

A Python client library for connecting to and retrieving API keys from the AnarchKey vault service.

Description

AnarchKeyClient provides a simple interface to securely retrieve API keys stored in the AnarchKey vault service. This package helps developers manage API credentials for their projects without hardcoding sensitive information in their codebase.

Installation

STEP 1:

pip install AnarchKeyClient

STEP 2

head over to https://anarchkey.pythonanywhere.com/ to signup and get your username and password

STEP 3

anarchkey init --username <YourUsername> --password <YourPassword>

Usage

from AnarchKeyClient import AnarchKeyClient

# Initialize the client with your username and AnarchKey API key
client = AnarchKeyClient(username="YourUsername", api_key="YourAnarchKeyAPIKey")

# Retrieve an API key for a specific project
response = client.get_api_key(project_name="YourProjectName")

# Check if request was successful
if response["success"]:
    api_key = response["key"]
    print(f"Retrieved API key: {api_key}")
else:
    print(f"Error: {response['message']}")

License MIT

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

anarchkeyclient-1.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

anarchkeyclient-1.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anarchkeyclient-1.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for anarchkeyclient-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d67ea20270fc5f288a13a6785d719cd2d35c7ef5bc8e98288fb18233695bd48f
MD5 8ff4abd3be3f099e5c614a8a32a44cfe
BLAKE2b-256 dce4cb06ac3de2b781a8b529aeb25f84eb795bbb7d4449115174232f6fbb2129

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anarchkeyclient-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 807cf54e402cd9bb5a267836885a3a605bcd1522cf3f2d7e0020cbd64702226e
MD5 9c50aa5ceb5dd9fcf28c45a984f2ef87
BLAKE2b-256 c4b435a8e7e5e20e8f791a4f4076738752580c47644af0c4437881222e9d3ed1

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