Python async client and TUI for bsky
Project description
PROGRESS REPORT
- Parse the Lexicons with PyDantic
- Generate code from the Lexicons
- Generate files
- Generate Fields from full Lexicon spec
- Generate code for queries
- Generate code for records
- Generate code for the procedures
- Generate f: (Session, Req) -> Resp helper functions
What is this?
An async python client for Bluesky.
I used to do a pretty absurd amount of experiments with twitter's api. But musk has decided to turn that platform into a pay-for-play version of LinkedIn and banished all the tinkerers. So, now I'm here.
Should I use this?
Almost certainly not. Right now it's a bucket of slop. I offer no guarantees about the stability of the API, the correctness of the implementation, or the quality of the documentation.
If you want to use it, go ahead,
# In your venv or mamba env or whatever
pip install psychonaut
to use it as a library. This also installs the psychonaut
command line tool.
psychonaut --help
# Temporary login
export BSKY_USERNAME=yourusername
export BSKY_PASSWORD=yourpassword
# Permanent login (~/.psychonaut.json)
psychonaut save-login yourusername
psychonaut poast "hey look, an annoying cron job"
But definitely be mindful of the version because I'm going to break your code.
Alternatively, just use pipx
pipx install psychonaut
export BSKY_USERNAME=yourusername
export BSKY_PASSWORD=yourpassword
psychonaut poast "hell yea, pipx"
How is this made?
This is a collaboration between the atproto repo,
me, and my friend ChatGPT (using GPT-4). I've been toying around with this
automatic langa
<->langb
transpiler in langchain.
My original goal was to jointly build that while making my python client from the atproto
repo. However, the fine folks at OpenAI have decided to still not grant me access to
GPT-4 in the API, and GPT-3 isn't quite good enough to do the job. So instead,
this was me testing the fences "manually" (with ChatGPT.)
This also means this project is a bit...like theft? IDK.
Question of the generative hour: where is the boundary?
See Also (for pythonistas)
- lexrpc (almost certainly better designed then mine)
- atprotools unstable
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for psychonaut-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 480faadc6e0ce9e0ff0ae3b2f882f70b869e821d5e000be6204410492855d662 |
|
MD5 | 337ccbc028802d4bb1765dd2b38f524d |
|
BLAKE2b-256 | 43f6b25f18702a2cff8c4ce76dad7d869198e5be5bda2b677b1b3b158d6e9fef |