Skip to main content

1Password_Utility 🚀

A collection of utility functions for interacting with 1Password via the command-line interface (CLI).

Features ✨

  • Retrieve credentials (username and password) from 1Password vaults securely within your Python scripts. 🔒
  • Simplifies the process of automating tasks and managing sensitive information. 🤖

Prerequisites 📋

  • 1Password: You need to have 1Password installed and set up on your system.
  • 1Password CLI (op): Install the 1Password CLI by following the instructions on the 1Password Developer website. 🛠️

Installation 📥

pip install 1Password-Utility

Usage

onepassword = __import__('1Password-Utility')

# Retrieve credentials from a 1Password item
item_uuid = "your_item_uuid"  # Replace with the actual UUID of your 1Password item
username, password = onepassword_utils.get_credentials_from_1password(item_uuid)

if username and password:
    print(f"Username: {username}")
    print(f"Password: {password}")
    # ... Use the credentials in your script 🎉
else:
    print("Failed to retrieve credentials.") 😕

Important:⚠️

Make sure you have the 1Password CLI (op) installed and configured correctly before using this package. Handle the retrieved credentials securely within your scripts. Avoid printing them to the console or storing them in plain text. 🛡️

Contributing 🤝

Contributions are welcome! Please feel free to submit pull requests or open issues if you find any bugs or have suggestions for improvements.

License 📄

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

Key points:

  • Clear sections: The README is organized into clear sections with headings to make it easy to navigate.
  • Prerequisites: The prerequisites section explicitly mentions the need for 1Password and the 1Password CLI.
  • Installation: Provides the pip install command for easy installation.
  • Usage: Includes a concise code example demonstrating how to use the get_credentials_from_1password function.
  • Important notes: Highlights important considerations for security and setup.
  • Contributing and License: Encourages contributions and specifies the license under which the project is released.

Remember to replace placeholders like your_item_uuid and your-username with your actual values.

You can further enhance the README by adding more detailed explanations, additional usage examples, or information about any other functions you might include in your onepassword_utils package in the future.

Let me know if you have any other questions or need help with further refinements!

Metadata

Release files for 1Password-Utility 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for 1Password-Utility 0.1.2
File Size Uploaded Provenance
1password_utility-0.1.2.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for 1Password-Utility 0.1.2
File Interpreter ABI Platform
1Password_Utility-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / 1password_utility-0.1.2.tar.gz

Download URL 1password_utility-0.1.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
80877b65e50e1821b3812ff06d331482b78f3b21778cbcfa3233a7373be941e6
BLAKE2b-256 checksum
How to use checksums
ac5fcfaebd02a5639f8f2c681e3d6662c7c205f02e6fb46ea3625bf240317cd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.10

Release files / 1Password_Utility-0.1.2-py3-none-any.whl

Download URL 1Password_Utility-0.1.2-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46525fb1e26c07793a0c0df221c020a6c2bebd63bed0fa212125bd40ec1309e3
BLAKE2b-256 checksum
How to use checksums
e6ff8af9ed82e13f6ef8f9a3aa2fa86f0c0e68327656646ce4f0bfea42d78bc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.10

Security for 1Password-Utility 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page