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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e7ab6a9d0a67c73a4a8c32fca76f3aee34fb8d5bc996f7ea2dbce7c626a960c
|
|
| MD5 |
cd0fedde5f961053c529eb751d28961b
|
|
| BLAKE2b-256 |
60743f050b524834002ca5e45d6d96ac435007acfa93345876b053840a1ad07d
|
File details
Details for the file cyberarkgetpassword-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cyberarkgetpassword-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8064c89be3e48e5bbf6dcc575b9db8b044f7693eaf5f2d3082f8b82a2edde69
|
|
| MD5 |
a4949a64cea2bf0457c48d1af6fdb53b
|
|
| BLAKE2b-256 |
f6c5317d98f2e0f8a35e687e4a1f1e86eb96b1e166f4e80c8c99f971ececeec4
|