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.2.1.tar.gz (4.7 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.2.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anarchkeyclient-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a1d12a1aa6a7a145687bcc66cff866f52cc6a458128e164525267404d54f9106
MD5 ff875fcb9af4da1b6835acabd716d259
BLAKE2b-256 0d684fd8292f8332ade1a28cea3f00a71e309b85ce276d95ab746e78705a7a8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anarchkeyclient-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bcd466a5b59e40fe61f14a77fa53275c74c128f22ef8883827ee375bfd79070
MD5 484548b3d87aa9326976d77448c7f566
BLAKE2b-256 273c4da9946a03aa30c5c91d114f84594ecce1502cc32e6d007da2fd4121b4d7

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