Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 1.57 KB

README.md

File metadata and controls

21 lines (11 loc) · 1.57 KB

blue-pyinthe-sky

This is a set of functions to help with the management of atprotocols, and bluesky. It's a work in progress, especially as things change within the atproto repo.

My goal is to eventually package this up into a python library but for now, this will do.

Getting Started

Auth is handled by using your identifier / username and password and using those to create a session, however as to not store credentials in cleartext, we encrypt them using fernet. You'll find the steps below to get up and running:

Step 1: Handling of Creds

In the tools directory, you'll find a script called crypto_helper.py that handles the creation of a key that will be used to encrypt and decrypt your credentials (so they're not in plaintext). It'll create a corresponding .secrets folder where it'll store a secret.key

Once its done, it'll output a string that looks like this b'<randomjunk>', copy and paste the entire thing into self.encrypted_credentials

Step 2: Running of class functions

This was created as just a collection of functions, in the APIHandler class, with the intention of making this its own Python package. I haven't looked too hard into how to make that work with the way I handle creds, but thats my next to do.

You should be able to call that class and its corresponding functions, and if your credentials are correct, everything should just work.