Skip to main content

1Password_Utility is a Python package providing utility functions for interacting with 1Password via the command-line interface (CLI). It simplifies the process of retrieving credentials from 1Password vaults within your Python scripts, making it easier to automate tasks and securely manage sensitive information.

Project description

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!

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

one_password_utils-0.1.5rc0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

one_password_utils-0.1.5rc0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file one_password_utils-0.1.5rc0.tar.gz.

File metadata

  • Download URL: one_password_utils-0.1.5rc0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for one_password_utils-0.1.5rc0.tar.gz
Algorithm Hash digest
SHA256 a3a0c4ce20ce7c35d215ba0bf21ae32d5d957221a8debca7e436dd50e8239968
MD5 9e6dc32c6d38077e35550b9dbee56a53
BLAKE2b-256 727a370ab7def5e7681ee7d0b5d535da45789d44d05cc2c14264a66e1aef6c1d

See more details on using hashes here.

File details

Details for the file one_password_utils-0.1.5rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for one_password_utils-0.1.5rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf57ebeef7a08a3153e0ddbe841c4cda370306a9287fc8c0f955b14b92229fb
MD5 81bf71b10f03ee80adeac0e6af92495e
BLAKE2b-256 da3808ce8b661ea9d61983190c68bf4915bb8120e18ee8fdcf0779541ee987b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page