{"id":13765693,"url":"https://github.com/dsblank/activitypub","last_synced_at":"2025-10-11T13:23:25.724Z","repository":{"id":57408065,"uuid":"130584599","full_name":"dsblank/activitypub","owner":"dsblank","description":"A general Python ActivityPub library","archived":false,"fork":false,"pushed_at":"2020-05-25T13:09:37.000Z","size":177,"stargazers_count":190,"open_issues_count":5,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-07T05:42:18.263Z","etag":null,"topics":["activitypub","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsblank.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":"2018-04-22T16:14:08.000Z","updated_at":"2025-09-19T04:01:30.000Z","dependencies_parsed_at":"2022-09-26T16:31:19.490Z","dependency_job_id":null,"html_url":"https://github.com/dsblank/activitypub","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dsblank/activitypub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsblank%2Factivitypub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsblank%2Factivitypub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsblank%2Factivitypub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsblank%2Factivitypub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsblank","download_url":"https://codeload.github.com/dsblank/activitypub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsblank%2Factivitypub/sbom","scorecard":{"id":357428,"data":{"date":"2025-08-11","repo":{"name":"github.com/dsblank/activitypub","commit":"662416836d312b2aa642d96d1ab0e41786767d37"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-217 / GHSA-462w-v97r-4m45","Warn: Project is vulnerable to: PYSEC-2014-8 / GHSA-8r7q-cvjq-x353","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2014-82 / GHSA-fqh9-2qgg-h84h","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: PYSEC-2019-220 / GHSA-hj2j-77xm-mc5v","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T09:56:25.615Z","repository_id":57408065,"created_at":"2025-08-18T09:56:25.615Z","updated_at":"2025-08-18T09:56:25.615Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006618,"owners_count":26084131,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["activitypub","python"],"created_at":"2024-08-03T16:00:44.105Z","updated_at":"2025-10-11T13:23:25.682Z","avatar_url":"https://github.com/dsblank.png","language":"Python","readme":"# activitypub\n\nThis is a Python library to use with\n[ActivityPub](https://en.wikipedia.org/wiki/ActivityPub). ActivityPub\nis an API for an open, distributed, social network.\n\n## Install\n\nYou can install the development version of activitypub with:\n\n```\npip install git+git://github.com/dsblank/activitypub\n```\n\nor the last packaged version with:\n\n```\npip install activitypub\n```\nTo use with redis:\n\n```\npip install redis redis_collections\n```\n\nOR to use with mongodb:\n\n```\npip install pymongo\n```\n\nOR to use with SQLAlchemy:\n\n```\npip install sqlalchemy\n```\n\n## Abstractions\n\nThis module is designed to be a generally useful ActivityPub library in Python. It targets three different levels of use:\n\n* ActivityPub object API\n* ActivityPub database API\n* Webserver API\n\nThese levels can be used independently, or together. They can best be used together using a Manager:\n\n```python\n\u003e\u003e\u003e from activitypub.manager import Manager\n\u003e\u003e\u003e from activitypub.database import ListDatabase\n\u003e\u003e\u003e db = ListDatabase()\n\u003e\u003e\u003e manager = Manager(database=db)\n\u003e\u003e\u003e p = manager.Person(id=\"alyssa\")\n\u003e\u003e\u003e p.to_dict()\n{'@context': 'https://www.w3.org/ns/activitystreams',\n 'endpoints': {},\n 'followers': 'https://example.com/alyssa/followers',\n 'following': 'https://example.com/alyssa/following',\n 'id': 'https://example.com/alyssa',\n 'inbox': 'https://example.com/alyssa/inbox',\n 'liked': 'https://example.com/alyssa/liked',\n 'likes': 'https://example.com/alyssa/likes',\n 'outbox': 'https://example.com/alyssa/outbox',\n 'type': 'Person',\n 'url': 'https://example.com/alyssa'}\n\u003e\u003e\u003e db.actors.insert_one(p.to_dict())\n\u003e\u003e\u003e db.actors.find_one({\"id\": 'https://example.com/alyssa'})\n{'@context': 'https://www.w3.org/ns/activitystreams',\n 'endpoints': {},\n 'followers': 'https://example.com/alyssa/followers',\n 'following': 'https://example.com/alyssa/following',\n 'id': 'https://example.com/alyssa',\n 'inbox': 'https://example.com/alyssa/inbox',\n 'liked': 'https://example.com/alyssa/liked',\n 'likes': 'https://example.com/alyssa/likes',\n 'outbox': 'https://example.com/alyssa/outbox',\n 'type': 'Person',\n 'url': 'https://example.com/alyssa',\n '_id': ObjectId('5b579aee1342a3230c18fbf7')}\n```\n\nactivitypub supports the following databases:\n\n* MongoDB\n* SQL dialects --- any that that sqlalchemy supports, including:\n  * SQLite (including in-memory)\n  * Firebird\n  * Microsoft SQL Server\n  * MySQL\n  * Oracle\n  * PostgreSQL\n  * Sybase\n  * ... and many more!\n* An in-memory, JSON-based database for testing\n* Redis\n\nThe activitypub database API is a subset of the MongoDB.\n\nactivitypub is targeting the following web frameworks:\n\n* Flask\n* Tornado\n\nOthers can be supported. Please ask!\n\nThe activitypub webservice API is based on Flask's.\n\n## Applications\n\n* [Blog](https://github.com/dsblank/activitypub/tree/master/apps/blog)\n","funding_links":[],"categories":["Python","Implementations"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsblank%2Factivitypub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsblank%2Factivitypub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsblank%2Factivitypub/lists"}