{"id":13703258,"url":"https://github.com/praw-dev/prawcore","last_synced_at":"2025-05-15T20:06:06.696Z","repository":{"id":3885544,"uuid":"51221799","full_name":"praw-dev/prawcore","owner":"praw-dev","description":"Low-level communication layer for PRAW 4+.","archived":false,"fork":false,"pushed_at":"2025-05-05T16:05:53.000Z","size":1851,"stargazers_count":23,"open_issues_count":1,"forks_count":35,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-14T01:06:11.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/praw-dev.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["praw-dev","bboe","LilSpazJoekp"]}},"created_at":"2016-02-06T21:02:28.000Z","updated_at":"2025-05-05T16:05:55.000Z","dependencies_parsed_at":"2023-10-14T19:12:01.760Z","dependency_job_id":"dd771203-b099-406b-b849-592f419d6757","html_url":"https://github.com/praw-dev/prawcore","commit_stats":{"total_commits":349,"total_committers":20,"mean_commits":17.45,"dds":0.4212034383954155,"last_synced_commit":"f716dd04a87dbd3c066e1684c7f8c8f2fdf77272"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fprawcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fprawcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fprawcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fprawcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praw-dev","download_url":"https://codeload.github.com/praw-dev/prawcore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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":[],"created_at":"2024-08-02T21:00:52.588Z","updated_at":"2025-05-15T20:06:01.504Z","avatar_url":"https://github.com/praw-dev.png","language":"Python","readme":".. _main_page:\n\nprawcore\n========\n\n.. image:: https://img.shields.io/pypi/v/prawcore.svg\n    :alt: Latest prawcore Version\n    :target: https://pypi.python.org/pypi/prawcore\n\n.. image:: https://img.shields.io/pypi/pyversions/prawcore\n    :alt: Supported Python Versions\n    :target: https://pypi.python.org/pypi/prawcore\n\n.. image:: https://img.shields.io/pypi/dm/prawcore\n    :alt: PyPI - Downloads - Monthly\n    :target: https://pypi.python.org/pypi/prawcore\n\n.. image:: https://github.com/praw-dev/prawcore/actions/workflows/ci.yml/badge.svg?event=push\n    :alt: GitHub Actions Status\n    :target: https://github.com/praw-dev/prawcore/actions/workflows/ci.yml\n\n.. image:: https://api.securityscorecards.dev/projects/github.com/praw-dev/prawcore/badge\n    :alt: OpenSSF Scorecard\n    :target: https://api.securityscorecards.dev/projects/github.com/praw-dev/prawcore\n\n.. image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg\n    :alt: Contributor Covenant\n    :target: https://github.com/praw-dev/.github/blob/main/CODE_OF_CONDUCT.md\n\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\n    :alt: pre-commit\n    :target: https://github.com/pre-commit/pre-commit\n\nprawcore is a low-level communication layer used by PRAW 4+.\n\nInstallation\n------------\n\nInstall prawcore using ``pip`` via:\n\n.. code-block:: console\n\n    pip install prawcore\n\nExecution Example\n-----------------\n\nThe following example demonstrates how to use prawcore to obtain the list of trophies\nfor a given user using the script-app type. This example assumes you have the\nenvironment variables ``PRAWCORE_CLIENT_ID`` and ``PRAWCORE_CLIENT_SECRET`` set to the\nappropriate values for your application.\n\n.. code-block:: python\n\n    #!/usr/bin/env python\n    import os\n    import pprint\n    import prawcore\n\n    authenticator = prawcore.TrustedAuthenticator(\n        prawcore.Requestor(\"YOUR_VALID_USER_AGENT\"),\n        os.environ[\"PRAWCORE_CLIENT_ID\"],\n        os.environ[\"PRAWCORE_CLIENT_SECRET\"],\n    )\n    authorizer = prawcore.ReadOnlyAuthorizer(authenticator)\n    authorizer.refresh()\n\n    with prawcore.session(authorizer) as session:\n        pprint.pprint(session.request(\"GET\", \"/api/v1/user/bboe/trophies\"))\n\nSave the above as ``trophies.py`` and then execute via:\n\n.. code-block:: console\n\n    python trophies.py\n\nAdditional examples can be found at:\nhttps://github.com/praw-dev/prawcore/tree/main/examples\n\nDepending on prawcore\n---------------------\n\nprawcore follows `semantic versioning \u003chttps://semver.org/\u003e`_ with the exception that\ndeprecations will not be preceded by a minor release. In essence, expect only major\nversions to introduce breaking changes to prawcore's public interface. As a result, if\nyou depend on prawcore then it is a good idea to specify not only the minimum version of\nprawcore your package requires, but to also limit the major version.\n\nBelow are two examples of how you may want to specify your prawcore dependency:\n\nsetup.py\n~~~~~~~~\n\n.. code-block:: python\n\n    setup(..., install_requires=[\"prawcore \u003e=0.1, \u003c1\"], ...)\n\nrequirements.txt\n~~~~~~~~~~~~~~~~\n\n.. code-block:: text\n\n    prawcore \u003e=1.5.1, \u003c2\n","funding_links":["https://github.com/sponsors/praw-dev","https://github.com/sponsors/bboe","https://github.com/sponsors/LilSpazJoekp"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraw-dev%2Fprawcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraw-dev%2Fprawcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraw-dev%2Fprawcore/lists"}