{ "info": { "author": "Roman Barczy\u0144ski", "author_email": "romanb@leanlab.pl", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "This library provides adpushup API for handling ads.txt management.\n\nDjango:\n\n1. add it to installed apps:\n ```python\n INSTALLED_APPS = (\n ...,\n 'adpushup_adstxt',\n ...,\n )\n ```\n\n2. add your user_id and key to YOUR settings.py:\n ```python\n ADPUSHUP_API_USER_ID = 'test@example.com'\n ADPUSHUP_API_KEY = '1234'\n ```\n\n3. OPTIONALLY add different WWW_DIR:\n ```python\n ADPUSHUP_WWW_DIR = '/some/dir/to/put/ads.txt/in/it/'\n ```\n\n by default it is Djangos `ROOT_DIR + '/www'`\n\n4. ADD it to your urlconf:\n ```python\n from adpushup_adstxt.django_views import handle\n\n urlpatterns += patterns(\n '',\n url(r'^adsTxtManagementApiByAdpushup.php', handle)),\n ````\n\nTesting:\n```python\nfrom adpushup_adstxt.utils import encode_uri_component\nimport time\nimport hmac\nimport hashlib\nimport requests\n\nuser_id = 'your user id'\nkey = 'your key'\n\nreq_time = int(time.time())\nhash_params = \"email={}&ts={}\".format(\n encode_uri_component(user_id.encode(\"UTF-8\")), req_time)\nhash = hmac.new(key, hash_params, hashlib.sha256).hexdigest()\n\nres = requests.post(\n 'http://localhost:8000/adsTxtManagementApiByAdpushup.php',\n dict(\n data='test content',\n ts=req_time,\n hash=hash))\n\nprint res.status_code\nprint res.content\n```\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://bitbucket.org/romkenet/adpushup-adstxt/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "adpushup-adstxt", "package_url": "https://pypi.org/project/adpushup-adstxt/", "platform": "", "project_url": "https://pypi.org/project/adpushup-adstxt/", "project_urls": { "Homepage": "https://bitbucket.org/romkenet/adpushup-adstxt/" }, "release_url": "https://pypi.org/project/adpushup-adstxt/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "AdPushUp ads.txt management API.", "version": "0.1.2" }, "last_serial": 4092163, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "cd7089c1371e9c2d6d5cca3e80ae11f5", "sha256": "1c487434fd87f3ceb6bade363962ea4059d1e1ff4fb42706d8b8bee50f22472e" }, "downloads": -1, "filename": "adpushup_adstxt-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cd7089c1371e9c2d6d5cca3e80ae11f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5397, "upload_time": "2018-07-23T08:11:52", "url": "https://files.pythonhosted.org/packages/ec/09/8007cb624eb62d110720deda58d08ec245dfd0cd9a1057127abe6c7741a9/adpushup_adstxt-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ac6228abc4dd42eb587b1fb8eddb385", "sha256": "7437575d4ad32b1c3c8efb33b974dbc222e7ebaa4645e17c0f0fd8a07ea9ba97" }, "downloads": -1, "filename": "adpushup-adstxt-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7ac6228abc4dd42eb587b1fb8eddb385", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4395, "upload_time": "2018-07-23T08:11:55", "url": "https://files.pythonhosted.org/packages/f6/a7/90179933ab7969e26b050f58f525066c7ce8e00a9fc00ef3447e310aa9fa/adpushup-adstxt-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd7089c1371e9c2d6d5cca3e80ae11f5", "sha256": "1c487434fd87f3ceb6bade363962ea4059d1e1ff4fb42706d8b8bee50f22472e" }, "downloads": -1, "filename": "adpushup_adstxt-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cd7089c1371e9c2d6d5cca3e80ae11f5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5397, "upload_time": "2018-07-23T08:11:52", "url": "https://files.pythonhosted.org/packages/ec/09/8007cb624eb62d110720deda58d08ec245dfd0cd9a1057127abe6c7741a9/adpushup_adstxt-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ac6228abc4dd42eb587b1fb8eddb385", "sha256": "7437575d4ad32b1c3c8efb33b974dbc222e7ebaa4645e17c0f0fd8a07ea9ba97" }, "downloads": -1, "filename": "adpushup-adstxt-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7ac6228abc4dd42eb587b1fb8eddb385", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4395, "upload_time": "2018-07-23T08:11:55", "url": "https://files.pythonhosted.org/packages/f6/a7/90179933ab7969e26b050f58f525066c7ce8e00a9fc00ef3447e310aa9fa/adpushup-adstxt-0.1.2.tar.gz" } ] }