# Unofficial Autumna Python API client
Unofficial Autumna.co.uk API Client for Python.
## Installation
```
pip install autumna
```
## Requirements
- Python 3.7+
# Usage
```Python
import datetime
from autumna.client import APIClient
from autumna.constants import Category
from autumna.resources.lead import Lead
api_client = APIClient('MY_API_KEY')
leads = Lead.many(
api_client,
date_from=datetime.date(2022, 1, 1),
date_to=datetime.date(2022, 4, 1),
is_anonymised=False,
category_id=Category.CONTACT_FORM_MESSAGE,
service_id=28058
)
for lead in leads:
print(lead)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/CareHQ/autumna-python",
"name": "Autumna",
"maintainer": "Anthony Blackshaw",
"docs_url": null,
"requires_python": "",
"maintainer_email": "ant@crmhq.co.uk",
"keywords": "autumna",
"author": "Anthony Blackshaw",
"author_email": "ant@crmhq.co.uk",
"download_url": "https://files.pythonhosted.org/packages/88/2a/9ec9f74139c6ed8d9c7ffecceaf4866da4b700c32bb993cb2a25cf4085e3/Autumna-0.1.2.tar.gz",
"platform": null,
"description": "# Unofficial Autumna Python API client\n\nUnofficial Autumna.co.uk API Client for Python.\n\n\n## Installation\n\n```\npip install autumna\n```\n\n\n## Requirements\n\n- Python 3.7+\n\n\n# Usage\n\n```Python\n\nimport datetime\n\nfrom autumna.client import APIClient\nfrom autumna.constants import Category\nfrom autumna.resources.lead import Lead\n\napi_client = APIClient('MY_API_KEY')\n\nleads = Lead.many(\n api_client,\n date_from=datetime.date(2022, 1, 1),\n date_to=datetime.date(2022, 4, 1),\n is_anonymised=False,\n category_id=Category.CONTACT_FORM_MESSAGE,\n service_id=28058\n)\n\nfor lead in leads:\n print(lead)\n\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Unofficial Autumna API Client for Python.",
"version": "0.1.2",
"split_keywords": [
"autumna"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "882a9ec9f74139c6ed8d9c7ffecceaf4866da4b700c32bb993cb2a25cf4085e3",
"md5": "08e63f9cc12719d06cd752a042e9551f",
"sha256": "5670cbc73cf70e09fc17fdfe87c916ae3dcf108ad064dc95544c73929df0b318"
},
"downloads": -1,
"filename": "Autumna-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "08e63f9cc12719d06cd752a042e9551f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5043,
"upload_time": "2023-01-06T16:41:47",
"upload_time_iso_8601": "2023-01-06T16:41:47.764266Z",
"url": "https://files.pythonhosted.org/packages/88/2a/9ec9f74139c6ed8d9c7ffecceaf4866da4b700c32bb993cb2a25cf4085e3/Autumna-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-06 16:41:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "CareHQ",
"github_project": "autumna-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "autumna"
}