Skip to main content

Utility to fetch CyberArk passwords

Project description

STEP 1: Project Structure Ensure your package directory is structured like this:

common_utilities/ │ ├── cyberarkgetpassword/ │ ├── init.py │ └── cyberark_get_password_obj.py # contains CyberArkPassword │ ├── setup.py ├── pyproject.toml # recommended ├── README.md └── LICENSE

STEP 2: Create Required Files cyberarkgetpassword/init.py Export your class:

from .cyberark_get_password_obj import CyberArkPassword

all = ["CyberArkPassword"] setup.py

from setuptools import setup, find_packages

setup( name="cyberarkgetpassword", version="0.1.0", packages=find_packages(), install_requires=[], # Add dependencies if any author="Surendra Kumar", author_email="your_email@example.com", description="Utility to fetch CyberArk passwords", long_description=open("README.md").read(), long_description_content_type="text/markdown", url="https://github.com/yourusername/cyberarkgetpassword", # Optional classifiers=[ "Programming Language :: Python :: 3", "Operating System :: OS Independent", ], python_requires=">=3.6", ) pyproject.toml (optional but recommended)

[build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta"

STEP 3: Build the Package Install necessary tools:

pip install setuptools wheel Then run:

python setup.py sdist bdist_wheel You’ll see a dist/ folder with files like:

dist/ ├── cyberarkgetpassword-0.1.0.tar.gz └── cyberarkgetpassword-0.1.0-py3-none-any.whl

STEP 4: Register on PyPI Go to https://pypi.org/account/register/ and create a free account.

Set up 2FA using Google Authenticator or similar.

Go to your account → API tokens → click Add API token.

Copy the token (starts with pypi-...) — you’ll need it in the next step.

STEP 5: Upload to PyPI Install twine:

pip install twine Then upload:

twine upload dist/* When prompted:

Enter your username (usually your PyPI username)

Paste your API token (instead of a password)

STEP 6: Verify Your Package Visit:

https://pypi.org/project/cyberarkgetpassword/ You should see your published package there.

STEP 7: Install from Anywhere Now you (or anyone) can install it using:

pip install cyberarkgetpassword

🔄 To Update Later Bump the version in setup.py (e.g., from 0.1.0 to 0.1.1)

Rebuild:

python setup.py sdist bdist_wheel Re-upload:

twine upload dist/*

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

cyberarkgetpassword-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

cyberarkgetpassword-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file cyberarkgetpassword-0.1.1.tar.gz.

File metadata

  • Download URL: cyberarkgetpassword-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for cyberarkgetpassword-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4e7ab6a9d0a67c73a4a8c32fca76f3aee34fb8d5bc996f7ea2dbce7c626a960c
MD5 cd0fedde5f961053c529eb751d28961b
BLAKE2b-256 60743f050b524834002ca5e45d6d96ac435007acfa93345876b053840a1ad07d

See more details on using hashes here.

File details

Details for the file cyberarkgetpassword-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cyberarkgetpassword-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8064c89be3e48e5bbf6dcc575b9db8b044f7693eaf5f2d3082f8b82a2edde69
MD5 a4949a64cea2bf0457c48d1af6fdb53b
BLAKE2b-256 f6c5317d98f2e0f8a35e687e4a1f1e86eb96b1e166f4e80c8c99f971ececeec4

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