{ "info": { "author": "SoulSoft Inc", "author_email": "admin@soulsoftinc.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "### About\nThe ICloud API for events management\n\n## Tools \n* Python 3\n\n## How to install with pip\n\nRun this command:\n\n```bash\npip install apple-calendar-integration\n```\n\n## How to create event\n\n```python\nfrom datetime import datetime, timedelta\nfrom apple_calendar_integration import ICloudCalendarAPI\n\napi = ICloudCalendarAPI(username, password)\n\nstart_date = int(datetime.now().timestamp())\nend_date = start_date + timedelta(hours=2)\netag, ctag, guid = api.create_event('Your title', start_date, end_date)\n\n```\n\nThis python script will create one two hour event from now. `etag`, `ctag` and `guid` will be used to edit or delete event.\n\n\n## How to delete event\n```python\nfrom apple_calendar_integration import ICloudCalendarAPI\n\napi = ICloudCalendarAPI(username, password)\napi.delete_event(new_etag, ctag, guid)\n\n```\n\nShould return `True` if everything is OK.\n\n## How to edit event with repeat\n\n#### How to add repeat num of times with some frequency\n```json\n{\n \"count\": 5,\n \"freq\": \"daily\"\n}\n```\nThis will mean repeat every day for 5 times(days).\n\n`freq` has such options:\n* daily\n* weekly\n* monthly\n* yearly\n\n#### How to add repeat until date with some frequency\nAlso, you can specify not num of times, but with the end date parameter.\n```json\n{\n \"until\": 1536910206,\n \"freq\": \"monthly\"\n}\n```\n\nAll code together\n\n```python\nfrom apple_calendar_integration import ICloudCalendarAPI\n\napi = ICloudCalendarAPI(username, password)\nrepeat = {\n \"until\": 1536910206,\n \"freq\": \"monthly\"\n}\nnew_etag = api.edit_event(etag, ctag, guid, repeat=repeat)\n\n```\nShould return new `etag` if everything is `OK`\n\n## How to edit event with alarm\n\nIf you want to create alarm in the moment of event\n\n```json\n{\n \"before\": false\n}\n```\n\nIf before the event\n\n```json\n{\n \"before\": false,\n \"hours\": 3,\n \"minutes\": 2,\n \"seconds\": 1 \n}\n```\n\nThis will send notification about event 3 hours 2 minute and 1 second before event start date\n\nThere are such options:\n* weeks\n* days\n* hours\n* minutes\n* seconds\n\nAll code together\n```python\nfrom apple_calendar_integration import ICloudCalendarAPI\n\napi = ICloudCalendarAPI(username, password)\nalarm = {\n \"before\": False,\n \"hours\": 3,\n \"minutes\": 2,\n \"seconds\": 1 \n}\nnew_etag = api.edit_event(etag, ctag, guid, alarm=alarm)\n```\nShould return new `etag` if everything is `OK`\n\n\n## How to edit event with invites\n\nHow to add new people to event\n```python\nfrom apple_calendar_integration import ICloudCalendarAPI\n\napi = ICloudCalendarAPI(username, password)\ninvites = [\"email_1@gmail.com\", \"email_2@gmail.com\"]\nnew_etag = api.edit_event(etag, ctag, guid, add_invites=invites)\n```\n\nHow to remove someone from invites\n```python\nfrom apple_calendar_integration import ICloudCalendarAPI\n\napi = ICloudCalendarAPI(username, password)\ninvites = [\"email_1@gmail.com\"]\nnew_etag = api.edit_event(new_etag, ctag, guid, remove_invites=invites)\n\n```\nShould return new `etag` if everything is `OK`\n\n\n## How to edit `note`, `url`, `title` or `event date`\n\n```python\nfrom apple_calendar_integration import ICloudCalendarAPI\nimport time\n\napi = ICloudCalendarAPI(username, password)\n\nnew_etag = api.edit_event(etag, ctag, guid,\n note='New notw', url='https://my_url.com', title='New title',\n start_date_timestamp=int(time.time()), end_date_timestamp=int(time.time()) + 1000)\n```\n\nShould return new `etag` if everything is `OK`\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SoulSoft/apple-calendar-integration", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "apple-calendar-integration", "package_url": "https://pypi.org/project/apple-calendar-integration/", "platform": "", "project_url": "https://pypi.org/project/apple-calendar-integration/", "project_urls": { "Homepage": "https://github.com/SoulSoft/apple-calendar-integration" }, "release_url": "https://pypi.org/project/apple-calendar-integration/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "The ICloud API for events management", "version": "0.0.1" }, "last_serial": 4293090, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "708529fa2a40075ee36da7ab3beb28e2", "sha256": "29c0047d41428b2b55566c62a2669f7df6cb6f340379388afa9364fe89384d4a" }, "downloads": -1, "filename": "apple_calendar_integration-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "708529fa2a40075ee36da7ab3beb28e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5649, "upload_time": "2018-09-20T15:16:09", "url": "https://files.pythonhosted.org/packages/80/e6/53062bc84b733f8de84a9f6e74e47dc0e5170d3eb0e4014fb86b2d79f896/apple_calendar_integration-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bbc578328e4e02fc7ed20cefc8ffdee6", "sha256": "95680e5c19a85e360f7322919211e6013665d660f30b12b8b95998541546bccd" }, "downloads": -1, "filename": "apple-calendar-integration-0.0.1.tar.gz", "has_sig": false, "md5_digest": "bbc578328e4e02fc7ed20cefc8ffdee6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5213, "upload_time": "2018-09-20T15:16:10", "url": "https://files.pythonhosted.org/packages/42/8a/ef45bcb7260c0d02295ae28ca6e76755cae84ac0ca04737125775e7d6d19/apple-calendar-integration-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "708529fa2a40075ee36da7ab3beb28e2", "sha256": "29c0047d41428b2b55566c62a2669f7df6cb6f340379388afa9364fe89384d4a" }, "downloads": -1, "filename": "apple_calendar_integration-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "708529fa2a40075ee36da7ab3beb28e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5649, "upload_time": "2018-09-20T15:16:09", "url": "https://files.pythonhosted.org/packages/80/e6/53062bc84b733f8de84a9f6e74e47dc0e5170d3eb0e4014fb86b2d79f896/apple_calendar_integration-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bbc578328e4e02fc7ed20cefc8ffdee6", "sha256": "95680e5c19a85e360f7322919211e6013665d660f30b12b8b95998541546bccd" }, "downloads": -1, "filename": "apple-calendar-integration-0.0.1.tar.gz", "has_sig": false, "md5_digest": "bbc578328e4e02fc7ed20cefc8ffdee6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5213, "upload_time": "2018-09-20T15:16:10", "url": "https://files.pythonhosted.org/packages/42/8a/ef45bcb7260c0d02295ae28ca6e76755cae84ac0ca04737125775e7d6d19/apple-calendar-integration-0.0.1.tar.gz" } ] }