pyAtoM


NamepyAtoM JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryPython library for the AtoM archival description and access platform API
upload_time2025-01-08 09:34:15
maintainerNone
docs_urlNone
authorJames Carr
requires_pythonNone
licenseApache License 2.0
keywords api preservation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyAtoM

Python Library for the AtoM Archival Description Platform API

This library provides a Python class for working with the AtoM Archival Description Rest API

https://accesstomemory.org/en/docs/2.8/dev-manual/api/api-intro/

The Library provides APIs for the following:

* Get a record by its Slug
* Get a record by its identifier
* Search for records
* Download a digital object attached to a record


## License

The package is available as open source under the terms of the Apache License 2.0


## Installation

pyAtoM is available from the Python Package Index (PyPI)

https://pypi.org/project/pyAtoM/

To install pyAtoM, simply run this simple command in your terminal of choice:


    $ pip install pyAtoM


## Examples

Finding records by Slug

    from pyAtoM import *

    client = AccessToMemory(username="demo@example.com", password="demo", server="demo.accesstomemory.org")

    slug: str = "my-slug"

    item: dict = client.get(slug)


Searching for all Records

    from pyAtoM import *

    client = AccessToMemory(username="demo@example.com", password="demo", server="demo.accesstomemory.org")

    for result in client.search():
        print(result)


Searching for Records with Query terms


    from pyAtoM import *

    client = AccessToMemory(username="demo@example.com", password="demo", server="demo.accesstomemory.org")

    queries: list = []

    queries.append(Query(query_value="horses", query_field=QueryField.title))
    queries.append(Query(query_value='Sudbury', query_operator=QueryOperator.or_terms, query_field=QueryField.all))

    for result in client.search(query_terms=queries):
        print(result)



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyAtoM",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "API Preservation",
    "author": "James Carr",
    "author_email": "drjamescarr@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c7/5d/10867b515e54eb67dcb5f0663b4428d20d75ae4beb36b845861fe5ca557d/pyatom-0.2.1.tar.gz",
    "platform": null,
    "description": "# pyAtoM\r\n\r\nPython Library for the AtoM Archival Description Platform API\r\n\r\nThis library provides a Python class for working with the AtoM Archival Description Rest API\r\n\r\nhttps://accesstomemory.org/en/docs/2.8/dev-manual/api/api-intro/\r\n\r\nThe Library provides APIs for the following:\r\n\r\n* Get a record by its Slug\r\n* Get a record by its identifier\r\n* Search for records\r\n* Download a digital object attached to a record\r\n\r\n\r\n## License\r\n\r\nThe package is available as open source under the terms of the Apache License 2.0\r\n\r\n\r\n## Installation\r\n\r\npyAtoM is available from the Python Package Index (PyPI)\r\n\r\nhttps://pypi.org/project/pyAtoM/\r\n\r\nTo install pyAtoM, simply run this simple command in your terminal of choice:\r\n\r\n\r\n    $ pip install pyAtoM\r\n\r\n\r\n## Examples\r\n\r\nFinding records by Slug\r\n\r\n    from pyAtoM import *\r\n\r\n    client = AccessToMemory(username=\"demo@example.com\", password=\"demo\", server=\"demo.accesstomemory.org\")\r\n\r\n    slug: str = \"my-slug\"\r\n\r\n    item: dict = client.get(slug)\r\n\r\n\r\nSearching for all Records\r\n\r\n    from pyAtoM import *\r\n\r\n    client = AccessToMemory(username=\"demo@example.com\", password=\"demo\", server=\"demo.accesstomemory.org\")\r\n\r\n    for result in client.search():\r\n        print(result)\r\n\r\n\r\nSearching for Records with Query terms\r\n\r\n\r\n    from pyAtoM import *\r\n\r\n    client = AccessToMemory(username=\"demo@example.com\", password=\"demo\", server=\"demo.accesstomemory.org\")\r\n\r\n    queries: list = []\r\n\r\n    queries.append(Query(query_value=\"horses\", query_field=QueryField.title))\r\n    queries.append(Query(query_value='Sudbury', query_operator=QueryOperator.or_terms, query_field=QueryField.all))\r\n\r\n    for result in client.search(query_terms=queries):\r\n        print(result)\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Python library for the AtoM archival description and access platform API",
    "version": "0.2.1",
    "project_urls": {
        "Discussion Forum": "https://github.com/carj/pyAtoM",
        "Documentation": "https://github.com/carj/pyAtoM",
        "Source": "https://github.com/carj/pyAtoM"
    },
    "split_keywords": [
        "api",
        "preservation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bb8fb16faf0048fc3a7f36be2bca8009aba8a76af40acd9498f784700205b949",
                "md5": "faf325707e83111e32a3b436274d2e3a",
                "sha256": "ce884b2096d7500d71620e036bddd4f0863c5c7c386635dcd6330019c7ec1fc7"
            },
            "downloads": -1,
            "filename": "pyAtoM-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "faf325707e83111e32a3b436274d2e3a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8780,
            "upload_time": "2025-01-08T09:34:13",
            "upload_time_iso_8601": "2025-01-08T09:34:13.552170Z",
            "url": "https://files.pythonhosted.org/packages/bb/8f/b16faf0048fc3a7f36be2bca8009aba8a76af40acd9498f784700205b949/pyAtoM-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c75d10867b515e54eb67dcb5f0663b4428d20d75ae4beb36b845861fe5ca557d",
                "md5": "c8fe0427339b2abb18c542476286508c",
                "sha256": "be3cc8377f84647772646de1f472424ab7e353086eac715a94a4fa192d81a54e"
            },
            "downloads": -1,
            "filename": "pyatom-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c8fe0427339b2abb18c542476286508c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9083,
            "upload_time": "2025-01-08T09:34:15",
            "upload_time_iso_8601": "2025-01-08T09:34:15.932315Z",
            "url": "https://files.pythonhosted.org/packages/c7/5d/10867b515e54eb67dcb5f0663b4428d20d75ae4beb36b845861fe5ca557d/pyatom-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-08 09:34:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "carj",
    "github_project": "pyAtoM",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyatom"
}
        
Elapsed time: 0.47401s