# maya-sdk
A client library for accessing Maya Insights API
## Usage
```python
import maya_sdk
maya_sdk.api_key = <API_KEY>
```
## API Key
Replace the <API_KEY> in the examples with an api key provided from Maya Insights.
To generate a key, you could sign in to Maya on https://app.mayainsights.com on your business account (make sure you have received the invitation to join via email). From there, under Administration -> Developers you can find the API Key.
Alternatively, contact our live chat support at https://mayainsights.com.
## Examples
### CSV Upload
```python
import maya_sdk
maya_sdk.api_key = <API_KEY>
with open("data.csv", "rb") as f:
maya_sdk.files.upload_csv(category="imported_orders", file=f)
```
Feel free to adjust the category name to describe the data that is being sent.
Raw data
{
"_id": null,
"home_page": "https://github.com/mayainsights/maya-sdk-python",
"name": "maya-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.4",
"maintainer_email": null,
"keywords": "maya insights bi marketing",
"author": "Maya Insights",
"author_email": "support@mayainsights.com",
"download_url": "https://files.pythonhosted.org/packages/98/27/ff21ff3233672158ecdf82c5812ae4b558341f9595dc73d512774213eeec/maya_sdk-0.1.1.tar.gz",
"platform": null,
"description": "# maya-sdk\nA client library for accessing Maya Insights API\n\n## Usage\n\n```python\nimport maya_sdk\nmaya_sdk.api_key = <API_KEY>\n```\n\n## API Key\n\nReplace the <API_KEY> in the examples with an api key provided from Maya Insights. \n\nTo generate a key, you could sign in to Maya on https://app.mayainsights.com on your business account (make sure you have received the invitation to join via email). From there, under Administration -> Developers you can find the API Key. \n\nAlternatively, contact our live chat support at https://mayainsights.com.\n\n## Examples\n\n### CSV Upload\n\n```python\nimport maya_sdk\nmaya_sdk.api_key = <API_KEY>\n\nwith open(\"data.csv\", \"rb\") as f:\n maya_sdk.files.upload_csv(category=\"imported_orders\", file=f)\n```\n\nFeel free to adjust the category name to describe the data that is being sent.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Maya Insights python SDK",
"version": "0.1.1",
"project_urls": {
"Bug Tracker": "https://github.com/mayainsights/maya-sdk-python/issues",
"Documentation": "https://github.com/mayainsights/maya-sdk-python/",
"Homepage": "https://github.com/mayainsights/maya-sdk-python",
"Source Code": "https://github.com/mayainsights/maya-sdk-python/"
},
"split_keywords": [
"maya",
"insights",
"bi",
"marketing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9827ff21ff3233672158ecdf82c5812ae4b558341f9595dc73d512774213eeec",
"md5": "81393cc40ed03f584dca9b59d42b612e",
"sha256": "04fc75fad9f7face693dc5b2347ff94e98b2c4d4cebbc8e58358bc3e10c4079b"
},
"downloads": -1,
"filename": "maya_sdk-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "81393cc40ed03f584dca9b59d42b612e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.4",
"size": 5562,
"upload_time": "2024-08-06T10:02:47",
"upload_time_iso_8601": "2024-08-06T10:02:47.850544Z",
"url": "https://files.pythonhosted.org/packages/98/27/ff21ff3233672158ecdf82c5812ae4b558341f9595dc73d512774213eeec/maya_sdk-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-06 10:02:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mayainsights",
"github_project": "maya-sdk-python",
"github_not_found": true,
"lcname": "maya-sdk"
}