{"id":13832516,"url":"https://github.com/monty888/nostrpy","last_synced_at":"2025-07-09T19:30:31.169Z","repository":{"id":41860843,"uuid":"461450486","full_name":"monty888/nostrpy","owner":"monty888","description":"python code and utilities for the nostr protocol WIP","archived":true,"fork":false,"pushed_at":"2023-01-25T12:14:54.000Z","size":7005,"stargazers_count":59,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-04T11:01:15.140Z","etag":null,"topics":["nostr","python"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monty888.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-20T10:17:42.000Z","updated_at":"2024-06-03T05:20:58.000Z","dependencies_parsed_at":"2023-02-14T07:16:39.060Z","dependency_job_id":null,"html_url":"https://github.com/monty888/nostrpy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monty888%2Fnostrpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monty888%2Fnostrpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monty888%2Fnostrpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monty888%2Fnostrpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monty888","download_url":"https://codeload.github.com/monty888/nostrpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225581771,"owners_count":17491788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nostr","python"],"created_at":"2024-08-04T11:00:21.743Z","updated_at":"2024-11-20T15:30:46.570Z","avatar_url":"https://github.com/monty888.png","language":"JavaScript","funding_links":[],"categories":["Install from Source","Relays"],"sub_categories":["Nostr","Implementations"],"readme":"No longer being developed.\n# moved to WIP projects:   \n- https://github.com/monty888/monstr\n- https://github.com/monty888/monstr_terminal\n- https://github.com/monty888/monstr_web      TODO\n\n# nostrpy\nsome stuff written in python for the nostr protocol developed against python v3.8.10  \n\n- cmd_web, python client with web front end\n- relay, relay implementation - basically working not really tested - now in monstr_terminal\n- client, client pool - classes that implement the client side part of the nostr protocol for apps to be built on - very rough but working - NOW base monstr\n- cmd_chat, example currently 1-1 cli chat app, partially implemented - will be monstr_terminal\n- mirror_relay, mirror nostr events from one set of nostr relays to another - will be monstr_terminal\n- event_view, view nostr events from the cmd line - now monstr_terminal\n- poster, make posts from the cmd line - now monstr terminal\n\n# Install\n\u003e cd nostrpy  \n\u003e python3 -m venv venv  \n\u003e source venv/bin/activate  \n\u003e pip install -r requirements.txt\n\n## Web interface ##\n![alt feed page](feed_page.png \"feed\")\n### to run ### \n\u003e python3 cmd_web.py  \n\u003e options    \n\u003e -- host run at a different host !important no authentication yet!! so only run at localhost or in trusted network\n\u003e as anyone who can get to the serevr can post as users!\n\n\n\n## Relay ##\n\u003e python3 run_relay.py \n\nThe default is to run the relay at ws://localhost:8081 with an sqlite db at /home/.nostrpy/nostr-client.db, the directry and db will be created if it doesn't exist.\n\n\u003e python run_relay -h for other options\n\n## Command line events view ##\nlive nostr events view from the command line\n\n\u003e python3 cmd_event_view.py \n\n\u003e python cmd_event_view.py -h for other options\n\n### todo\n#### general\n- [ ] implement postgres as data store for client\n#### cmd_web.py\n- [ ] settings \n  - [X] get\n  - [X] put\n  - [ ] get with recurse up tree to defaults\n- [x] websocket for client probably shouldn't be getting opened each page but be in sharedwebworker  \n- [ ] enable media available from front end\n- [ ] url for robos from front end  \n- [ ] connected relays should be being saved and on restart the same relays should be connected to  \n- [ ] light init mode where we only use a default relay to get relay list and then its all user choice  \n- [ ] boosts  \n- [ ] make sure the caching of profiles is working correctly and firing/listening for profile changes updates\nas expected  \n- [ ] it should be possible to new/link to a profile that we don't yet have the profile for\n, the profile may come in later e.g. when backfill is in progress\n\n#### profiles\n- [ ] go properly through adding/editing profiles make sure works as expected\n- [ ] add delete profile method\n- [ ] add link icon to others profile page that opens up dialog to link privk\n\n#### backfill\n- [ ] put relay_url.lastfill_date setting in on complete backfill and\nwhere we have this it'll be used in place of starting at oldest db event\n#### clean out\n- [ ] a job that runs in the background and will clean out old events based on defined rules\n\n### bugs\n- [ ] profiles only sorted as they come from db and not as new events come in\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonty888%2Fnostrpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonty888%2Fnostrpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonty888%2Fnostrpy/lists"}