{"id":19811406,"url":"https://github.com/diging/django-tethne-client","last_synced_at":"2025-08-28T23:48:53.116Z","repository":{"id":68005250,"uuid":"63430989","full_name":"diging/django-tethne-client","owner":"diging","description":"Python client for the django-tethne JSON API","archived":false,"fork":false,"pushed_at":"2016-11-17T21:51:06.000Z","size":1671,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T08:37:48.970Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diging.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-15T15:11:46.000Z","updated_at":"2016-07-15T18:38:53.000Z","dependencies_parsed_at":"2023-04-04T05:55:33.536Z","dependency_job_id":null,"html_url":"https://github.com/diging/django-tethne-client","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/diging/django-tethne-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diging%2Fdjango-tethne-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diging%2Fdjango-tethne-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diging%2Fdjango-tethne-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diging%2Fdjango-tethne-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diging","download_url":"https://codeload.github.com/diging/django-tethne-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diging%2Fdjango-tethne-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272582506,"owners_count":24959419,"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-08-28T02:00:10.768Z","response_time":74,"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":[],"created_at":"2024-11-12T09:26:13.385Z","updated_at":"2025-08-28T23:48:53.094Z","avatar_url":"https://github.com/diging.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-tethne-client \u003ca href=\"https://travis-ci.org/diging/django-tethne-client/builds\"\u003e\u003cimg src=\"https://travis-ci.org/diging/django-tethne-client.svg\" alt=\"build:\"\u003e\u003c/a\u003e\n\nPython client for the django-tethne JSON API.\n\n## Install\n\n```shell\n$ pip install -U django-tethne-client\n```\n\n## Examples\n\n### Connect\n\n```python\n\u003e\u003e\u003e from tethneweb.client import TethneClient\n\u003e\u003e\u003e client = TethneClient('http://tethne.web.instance.com', 'username', 'password')\n```\n\n### Get lists of things\n\n```python\n\u003e\u003e\u003e corpora = client.list_corpora()\n\u003e\u003e\u003e corpora\n[\u003ctethneweb.classes.Corpus at 0x1042ac150\u003e, \u003ctethneweb.classes.Corpus at 0x1042ac105\u003e]\n```\n\n### Get related things\n\nRelations among result objects (e.g. Corpus, Paper, Author) can be accessed as\nproperties. Fore xample\n\n```python\n\u003e\u003e\u003e corpus = corpora[0]\n\u003e\u003e\u003e corpus.papers[:]\n[\u003ctethneweb.classes.Paper at 0x104aa2e50\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2250\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2850\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2d10\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2310\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2510\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa25d0\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa24d0\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2110\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2b10\u003e,\n \u003ctethneweb.classes.Paper at 0x104aa2f90\u003e,\n ...\n \u003ctethneweb.classes.Paper at 0x104b80310\u003e]\n```\n\n## Methods\n\n### ``TethneClient``\n\n#### List methods\n\n* ``list_corpora(limit=100, **params)``: Returns a list of ``Corpus`` objects.\n* ``list_papers(limit=100, **params)``: Returns a list of ``Paper`` objects.\n* ``list_authors(limit=100, **params)``: Returns a list of ``Author`` objects.\n\nAll list methods take the following parameters:\n\n* **``limit``** (default: 100): Maximum number of records to return.\n* **``params``**: Additional keyword arguments are passed to the ``params`` argument when calling  [``requests.get()``](http://docs.python-requests.org/en/master/api/#requests.get).\n\n#### Get methods\n\n* ``get_corpus(id)``: Returns a ``Corpus`` object.\n* ``get_paper(id)``: Returns a ``Paper`` object.\n* ``get_author(id)``: Returns an ``Author`` object.\n* ``get_institution(id)``: Returns an ``Institution`` object.\n\n### ``Corpus``\n\n### ``Paper``\n\n### ``Author``\n\n### ``Institution``\n\n### ``Affiliation``\n\n### ``Metadataum``\n\n### ``Identifier``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiging%2Fdjango-tethne-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiging%2Fdjango-tethne-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiging%2Fdjango-tethne-client/lists"}