{"id":15492308,"url":"https://github.com/stranger6667/pyanyapi","last_synced_at":"2025-04-22T19:26:20.973Z","repository":{"id":62578683,"uuid":"42726766","full_name":"Stranger6667/pyanyapi","owner":"Stranger6667","description":"Tools for convenient interface creation over various types of data in a declarative way.","archived":false,"fork":false,"pushed_at":"2020-09-01T10:31:18.000Z","size":130,"stargazers_count":13,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-19T10:44:52.061Z","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/Stranger6667.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Stranger6667"}},"created_at":"2015-09-18T14:21:17.000Z","updated_at":"2020-09-01T10:31:20.000Z","dependencies_parsed_at":"2022-11-03T19:41:09.565Z","dependency_job_id":null,"html_url":"https://github.com/Stranger6667/pyanyapi","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyanyapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyanyapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyanyapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stranger6667%2Fpyanyapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stranger6667","download_url":"https://codeload.github.com/Stranger6667/pyanyapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250307683,"owners_count":21409117,"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-02T08:00:17.407Z","updated_at":"2025-04-22T19:26:20.946Z","avatar_url":"https://github.com/Stranger6667.png","language":"Python","funding_links":["https://github.com/sponsors/Stranger6667"],"categories":[],"sub_categories":[],"readme":"PyAnyAPI\n========\n\nTools for convenient interface creation over various types of data in\na declarative way.\n\n.. image:: https://travis-ci.org/Stranger6667/pyanyapi.svg?branch=master\n   :target: https://travis-ci.org/Stranger6667/pyanyapi\n   :alt: Build Status\n\n.. image:: https://codecov.io/github/Stranger6667/pyanyapi/coverage.svg?branch=master\n   :target: https://codecov.io/github/Stranger6667/pyanyapi?branch=master\n   :alt: Coverage Status\n\n.. image:: https://readthedocs.org/projects/pyanyapi/badge/?version=latest\n   :target: http://pyanyapi.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\nInstallation\n------------\n\nThe current stable release:\n\n::\n\n    pip install pyanyapi\n\nor:\n\n::\n\n    easy_install pyanyapi\n\nor from source:\n\n::\n\n    $ sudo python setup.py install\n\nUsage\n-----\n\nThe library provides an ability to create API over various content.\nCurrently there are bundled tools to work with HTML, XML, CSV, JSON and YAML.\nInitially it was created to work with ``requests`` library.\n\nBasic parsers can be declared in the following way:\n\n.. code-block:: python\n\n    from pyanyapi.parsers import HTMLParser\n\n\n    class SimpleParser(HTMLParser):\n        settings = {'header': 'string(.//h1/text())'}\n\n\n    \u003e\u003e\u003e api = SimpleParser().parse('\u003chtml\u003e\u003cbody\u003e\u003ch1\u003eValue\u003c/h1\u003e\u003c/body\u003e\u003c/html\u003e')\n    \u003e\u003e\u003e api.header\n    Value\n\nDocumentation\n-------------\n\nYou can view documentation online at:\n\n- https://pyanyapi.readthedocs.io\n\nOr you can look at the docs/ directory in the repository.\n\nPython support\n--------------\n\nPyAnyAPI supports Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, PyPy and partially PyPy3 and Jython.\nUnfortunately ``lxml`` doesn't support PyPy3 and Jython, so HTML \u0026 XML parsing is not supported on PyPy3 and Jython.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstranger6667%2Fpyanyapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstranger6667%2Fpyanyapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstranger6667%2Fpyanyapi/lists"}