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

import onepassword_utils

# 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!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

1password_utility-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

1Password_Utility-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file 1password_utility-0.1.1.tar.gz.

File metadata

  • Download URL: 1password_utility-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.10

File hashes

Hashes for 1password_utility-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5514932ab9efbf2659224dd3578c79320da65510ee354a5f6a064f8791b9ec59
MD5 c9212c836134a16fcf93e11d1cd23c5f
BLAKE2b-256 0953aacc38aa047ba423486bbef6a53386c526380f4e019e45e88dbd26d33872

See more details on using hashes here.

File details

Details for the file 1Password_Utility-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for 1Password_Utility-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b90cf91a97dff9255fbd08fd64e3f79b0b98b50ec80be99210dda248524d285c
MD5 931530db599ca7dc83c495d3e4dbc1a2
BLAKE2b-256 a2a47e2faa51f8c94c2b45fbf1f57e8fc445d098a5503bdf2466b55af7f8c264

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