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.
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:
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
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.