{"id":17047604,"url":"https://github.com/residentmario/pysocrata","last_synced_at":"2025-07-04T02:32:24.675Z","repository":{"id":62583589,"uuid":"78140987","full_name":"ResidentMario/pysocrata","owner":"ResidentMario","description":"Python module for interfacing with the Socrata open data catalog API.","archived":false,"fork":false,"pushed_at":"2017-08-12T19:30:16.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T00:04:42.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/ResidentMario.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-05T19:16:44.000Z","updated_at":"2017-08-12T19:00:03.000Z","dependencies_parsed_at":"2022-11-03T21:49:39.763Z","dependency_job_id":null,"html_url":"https://github.com/ResidentMario/pysocrata","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fpysocrata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fpysocrata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fpysocrata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ResidentMario%2Fpysocrata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ResidentMario","download_url":"https://codeload.github.com/ResidentMario/pysocrata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052652,"owners_count":20553163,"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-10-14T09:49:49.047Z","updated_at":"2025-03-23T03:44:36.904Z","avatar_url":"https://github.com/ResidentMario.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pysocrata [![PyPi version](https://img.shields.io/pypi/v/pysocrata.svg)](https://pypi.python.org/pypi/pysocrata/) ![t](https://img.shields.io/badge/status-stable-green.svg)\n\n### About\n`pysocrata` is a small Python module which provides an interface to the [Socrata](https://socrata.com/) open data \nportal [catalog API](http://docs.socratadiscovery.apiary.io/).\n\nIt is *not* a binding for the [Socrata SODA API](https://dev.socrata.com/consumers/getting-started.html), which\nimplements direct access to data within individual dataset. For that, see [`sodapy`](https://github.com/xmunoz/sodapy)\nor [`rsocrata`](https://github.com/Chicago/RSocrata). `pysocrata` instead provides a way of getting a list of *all*\ndatasets on a portal, for example, or of querying them for various dataset-level characteristics.\n\n### Quickstart\n\nIn the following brief overview I take **domain** to mean the open data portal of interest (for example, the New York\nCity Open Data Portal, or the New York State Open Data Portal). An **endpoint** is a URL-accessible \"thing\" on a \nSocrata open data portal. A **resource** (or data endpoint) is an endpoint which contains actual novel data; this \ndefinition purposefully excludes endpoints which publish data filtered or remixed from another source. For instance, \nin the case of a map-type endpoint that displays a sub-selection of data from a different geospatial type resource, \nthe originator is a *resource*, while the map endpoint is merely a *non-data endpoint*.\n\nThe methodology implemented in this module solves the surprisingly non-trivial problem of distinguishing between data \nand non-data endpoints on a Socrata open data portal, which are not immediately differenciable in the Socrata catalog\nAPI.\n\nKeeping these definitions in mind, this module has two user-facing top-level methods:\n\n* `pysocrata.get_resources(domain, token)` returns the metadata for every resource on a domain of interest.\n* `pysocrata.count_resources(domain, token)` returns a counter of resources by type.\n\nYou may also peruse `pysocrata.get_endpoints_using_raw_json_emission` and `pysocrata.get_endpoints_using_catalog_api`\n to fetch the raw catalog API streams.\n \n### Further Reading\n* [`socrata-portal-metadata`](https://github.com/ResidentMario/socrata-portal-metadata)\n* [The anatomy of an open data portal](http://www.residentmar.io/2016/08/11/nyc-open-data-portal.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresidentmario%2Fpysocrata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresidentmario%2Fpysocrata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresidentmario%2Fpysocrata/lists"}