{ "info": { "author": "Vlad Temian", "author_email": "vladtemian@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "buffer-app-python (buffpy)\n==========================\nSimple to use python library for Buffer App\n\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fvtemian%2Fbuffpy%2Fbadge&style=flat-square)](https://actions-badge.atrox.dev/vtemian/buffpy/goto) [![Coverage Status](https://coveralls.io/repos/vtemian/buffpy/badge.png?branch=master)](https://coveralls.io/r/vtemian/buffpy?branch=master)\n\n### ORM`ish\n------------\nBufferapp.com details some useful entities:\n * user\n * profile\n * update\n * link\n * info\n\nEvery entity can be seen as an object that has attributes and methods. Those\nmethods and attributes are linked to certain endpoints.\n\nAll objects are special dicts. For example, you can do something like:\n```python\nuser.id => '12455678976asd'\nuser => {...}\n```\n\nIf you want to see more complete examples, click [here](../master/examples)\n\n#### Authorization\n------------------\nGet access_token using buffer [docs](https://bufferapp.com/developers/api/oauth)\n\n```python\n\nservice = AuthService(client_id, client_secret, redirect_uri)\n\nurl = service.authorize_url\n\n# Access the url and retrieve the token\nauth_code = #Paste the code from the redirected url\n\naccess_token = service.get_access_token(auth_code)\n\napi = service.create_session(access_token)\n```\n\n#### User\n----------\nA user represents a single Buffer user account.\n\n```python\n\napi = API(client_id='client_id',\n client_secret='client_secret',\n access_token='access_token')\n\n# instantiate an user object\nuser = User(api=api)\n\nprint(user)\nprint(user.id)\nprint(user.timezone)\n```\n\n#### Profile\n------------\nA Buffer profile represents a connection to a single social media account.\n\n```python\nprofiles = Profiles(api=api)\nprint(profiles.all()) # get all profiles\n\n# filter profiles using some criteria\nprofile = Profiles(api=api).filter(service='twitter')[0]\nprint(profile) # my twitter profile\n\n# get schedules of my twitter profile\nprint(profile.schedules)\n\n# update schedules times for my twitter profile\nprofile.schedules = {\n 'days': ['tue', 'thu'],\n 'times': ['13:45']\n}\n```\n\n#### Update\n-----------\nAn update represents a single post to a single social media account.\n\n```python\n# retrieve a single update based on an id\nupdate = Update(api=api, id='51de8d33e48c051712000019')\nprint(update)\n\n# get update's interactions\nprint(update.interactions)\n\n# edit\nupdate = update.edit(text=\"Hey!\")\n\n# publish now\nupdate.publish()\n\n# move to top\nupdate.move_to_top()\n\n# delete\nupdate.delete()\n```\n\n#### Updates and profiles\n-------------------------\n\n```python\n# get all pending updates of a social network profile\nprofile = Profiles(api=api).filter(service='twitter')[0]\nprint(profile.updates.pending)\n\n# get all sent updates of a social network profile\nprint(profile.updates.sent)\n\n# retrieve all update's interactions\nprint(profile.updates.sent[0].interactions)\n\n# shuffle updates\nprint(profile.updates.shuffle(count=10))\n\n# reorder updates\nprint(profile.updates.reorder(['51dd27629f7fdf520d00009a']))\n\n# create an update\nprint(profile.updates.new(\"Hello there\", now=True))\n```\n\n#### Links\n----------\nA link represents a unique URL that has been shared through Buffer\n\n```python\n# get a link's shares\nprint(Link(api=api, url='http%3A%2F%2Fbufferapp.com').shares)\n```\n\n#### Info\n---------\nReturns an object with the current configuration that Buffer is using,\nincluding supported services, their icons and the varying limits of character \nand schedules.\n\n```python\n# instantiate the api object\napi = API(client_id='client_id',\n client_secret='client_secret',\n access_token='access_token')\n\n# get api's info\nprint(api.info)\n```\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://github.com/vtemian/buffpy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "buffpy", "package_url": "https://pypi.org/project/buffpy/", "platform": "any", "project_url": "https://pypi.org/project/buffpy/", "project_urls": { "Homepage": "https://github.com/vtemian/buffpy" }, "release_url": "https://pypi.org/project/buffpy/3.1.1/", "requires_dist": [ "certifi (==2019.3.9)", "chardet (==3.0.4)", "colorama (==0.4.1)", "coverage (==4.5.3)", "httpretty (==0.9.6)", "idna (==2.8)", "rauth (==0.7.3)", "requests (==2.22.0)", "six (==1.12.0)", "urllib3 (==1.25.2)" ], "requires_python": "", "summary": "Python library for Buffer App", "version": "3.1.1" }, "last_serial": 5771790, "releases": { "1.01b": [ { "comment_text": "", "digests": { "md5": "1790303a73e642d6663189e3a8271f2c", "sha256": "98ccb9a9df076e61b1fba141eafdc4ed6128dc6e0310105f4916018eb6d76958" }, "downloads": -1, "filename": "buffpy-1.01b.linux-i686.exe", "has_sig": false, "md5_digest": "1790303a73e642d6663189e3a8271f2c", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 78932, "upload_time": "2013-08-26T15:40:06", "url": "https://files.pythonhosted.org/packages/89/1a/8e1c940ff78b7217dfb83750d93cd9464c95a4a209ad9302ffa5f5b29383/buffpy-1.01b.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "75da4e20fe869dbd74bb25800e785e96", "sha256": "ae2d3ba21aa82dea34324c095471faa9a3c1cef3d60539414a4d08d46b551bee" }, "downloads": -1, "filename": "buffpy-1.01b.tar.gz", "has_sig": false, "md5_digest": "75da4e20fe869dbd74bb25800e785e96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8576, "upload_time": "2013-08-26T15:40:02", "url": "https://files.pythonhosted.org/packages/fb/70/668555c9f568d685334045296d72d32bc708dc284895026673a0558e6f9e/buffpy-1.01b.tar.gz" } ], "1.02b": [ { "comment_text": "", "digests": { "md5": "bd677f70be3367af61cfdf67c147a3e5", "sha256": "50c95018d33b841a642347c492f2205f7a22f88605b51c0d9ab0442469476399" }, "downloads": -1, "filename": "buffpy-1.02b.linux-i686.exe", "has_sig": false, "md5_digest": "bd677f70be3367af61cfdf67c147a3e5", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 79229, "upload_time": "2013-08-26T16:02:38", "url": "https://files.pythonhosted.org/packages/a0/c0/89ca853575dbc2c3066fe8c895a3587de0f10516481b471b68aa2a91b884/buffpy-1.02b.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "23f71f563270d3e6c9660091805b120d", "sha256": "89af4c0698fffc705ce8ea8e09d546088e911ff2cfddd6d59c86e6ff0a41c288" }, "downloads": -1, "filename": "buffpy-1.02b.tar.gz", "has_sig": false, "md5_digest": "23f71f563270d3e6c9660091805b120d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9135, "upload_time": "2013-08-26T16:02:36", "url": "https://files.pythonhosted.org/packages/85/fc/2bc32c37898f0c16b3b7c78ec2cc228bc1d4396a982bb4a4d41087c9a11d/buffpy-1.02b.tar.gz" } ], "1.03b": [ { "comment_text": "", "digests": { "md5": "fa645e2e4bbe5076924806178e81a180", "sha256": "1566af72781c2813ea25bb5fa20cae9db481a2fbfb0f313e68999db2af2eff74" }, "downloads": -1, "filename": "buffpy-1.03b.tar.gz", "has_sig": false, "md5_digest": "fa645e2e4bbe5076924806178e81a180", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8007, "upload_time": "2013-08-26T16:07:09", "url": "https://files.pythonhosted.org/packages/b7/d1/3938027e9055df27d1480c3cb28cbfe9c3a8cef5b6bcd74e7fdc98292658/buffpy-1.03b.tar.gz" } ], "1.04b": [ { "comment_text": "", "digests": { "md5": "174f95e365df23b90dd9ffd60a24f658", "sha256": "dcd9b5dbf0788e37cf93ec3cb0f804beeacb7fcd499563f013efcd2b73e65416" }, "downloads": -1, "filename": "buffpy-1.04b.linux-i686.exe", "has_sig": false, "md5_digest": "174f95e365df23b90dd9ffd60a24f658", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 74937, "upload_time": "2013-08-26T16:19:44", "url": "https://files.pythonhosted.org/packages/6a/d6/c80572d3f4dd450e440fbbc3b87770762d20d7d48b843f942171f858bc8c/buffpy-1.04b.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "a86cbc4f4b27cb1978df2b92d1eb8e14", "sha256": "2770b4a723ba480af881c65d3e31643d3a42817857306222549cab20e186f729" }, "downloads": -1, "filename": "buffpy-1.04b.tar.gz", "has_sig": false, "md5_digest": "a86cbc4f4b27cb1978df2b92d1eb8e14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7951, "upload_time": "2013-08-26T16:19:41", "url": "https://files.pythonhosted.org/packages/db/ce/a5a6f6d73cb45a6d4c9ad7928c596d2bf7582198f71dd689e825648b5dbf/buffpy-1.04b.tar.gz" } ], "1.05b": [ { "comment_text": "", "digests": { "md5": "2efe2ecdebf802aaa6664c3846759c0e", "sha256": "805a177f7c71becbb7046b0a808678194858984e2a5692b4546d552aaa6184ec" }, "downloads": -1, "filename": "buffpy-1.05b.tar.gz", "has_sig": false, "md5_digest": "2efe2ecdebf802aaa6664c3846759c0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2176, "upload_time": "2014-02-25T13:37:36", "url": "https://files.pythonhosted.org/packages/9a/d5/718b02b7c466f5114a9441ece8b0b3097ca0ed4f90adf30e5fd1016b827e/buffpy-1.05b.tar.gz" } ], "1.06": [ { "comment_text": "", "digests": { "md5": "1bbcd01bbc8ccc15a905bdaad72ebb9e", "sha256": "a3d8ab8d4e60436e9d0e6122f4c70403bbba7ac8d26f13ed4a87731d51a89ea1" }, "downloads": -1, "filename": "buffpy-1.06.tar.gz", "has_sig": false, "md5_digest": "1bbcd01bbc8ccc15a905bdaad72ebb9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2155, "upload_time": "2014-03-02T21:29:45", "url": "https://files.pythonhosted.org/packages/f1/bd/bd91668797b3a13afba6551d813177f48903109cf3b02ecfdb229e945bc9/buffpy-1.06.tar.gz" } ], "1.07": [ { "comment_text": "", "digests": { "md5": "9cdb61e7ec600cf9fd7e09fc073c5785", "sha256": "755e5e9a71b25b051a074a8a64b7c7997ae0bfa3a09d556a8426449f28e143aa" }, "downloads": -1, "filename": "buffpy-1.07.tar.gz", "has_sig": false, "md5_digest": "9cdb61e7ec600cf9fd7e09fc073c5785", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2434, "upload_time": "2014-03-09T14:39:14", "url": "https://files.pythonhosted.org/packages/19/5a/32b3fcf8e8f81dccd933437eab514f8ac8ee2028f32e639dd7e8aaf5ef5c/buffpy-1.07.tar.gz" } ], "1.0b": [ { "comment_text": "", "digests": { "md5": "ecc9ed9149a24fd0b005e627000c777b", "sha256": "98bd86cfa8061c6c7aa1215f6c742533a625642404d892c398b2a348dc2215de" }, "downloads": -1, "filename": "buffpy-1.0b.linux-i686.exe", "has_sig": false, "md5_digest": "ecc9ed9149a24fd0b005e627000c777b", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 74675, "upload_time": "2013-08-26T15:29:39", "url": "https://files.pythonhosted.org/packages/c8/be/d5f6afa2df34fc7fc46d019efb85999cfd10b378ac9183b61a109ac68e68/buffpy-1.0b.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "74f006214c64dde2deaade69f0d0941f", "sha256": "e663b239872fcc864b6a1fbbb2c49dd9d5dc7cb7307a296ddc64bc2629909b53" }, "downloads": -1, "filename": "buffpy-1.0b.tar.gz", "has_sig": false, "md5_digest": "74f006214c64dde2deaade69f0d0941f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7401, "upload_time": "2013-08-26T15:29:37", "url": "https://files.pythonhosted.org/packages/bc/0a/25d7e95cf6a9bf131a1937b5eb86f1644e296ce8cd24a02fa6c5c6845ca1/buffpy-1.0b.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "8f053f57aca199e000071125e9ead614", "sha256": "b00c5e55eedeae48b53bef4182527dedb1e21fc0eccb4bf49d41e6298eb9af07" }, "downloads": -1, "filename": "buffpy-3.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8f053f57aca199e000071125e9ead614", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10160, "upload_time": "2019-09-02T16:38:34", "url": "https://files.pythonhosted.org/packages/73/e9/9ec29f26659c985ecb632c8bcf8d67ee47611bd11b8bdd45e3878b602461/buffpy-3.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "661bf07f842bd8afe48de351c82b5223", "sha256": "d9d589ffbe01a01f0882f6d4bcf7371e57e45969f19be45447abd2a2a91160fe" }, "downloads": -1, "filename": "buffpy-3.1.0.tar.gz", "has_sig": false, "md5_digest": "661bf07f842bd8afe48de351c82b5223", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7476, "upload_time": "2019-09-02T16:38:36", "url": "https://files.pythonhosted.org/packages/e8/3c/6257c42260f41422fa1890e71ccc03acb0397838fa69e95b10101bf5da4b/buffpy-3.1.0.tar.gz" } ], "3.1.1": [ { "comment_text": "", "digests": { "md5": "c7fbaa387781ff2a31a0c860392d1396", "sha256": "1617539c6ad4beedfdcfe15ed1c8414bf40dbf089ee2c8d0a5ac876b3d1927fc" }, "downloads": -1, "filename": "buffpy-3.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c7fbaa387781ff2a31a0c860392d1396", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11599, "upload_time": "2019-09-02T16:41:01", "url": "https://files.pythonhosted.org/packages/95/97/b271fd404f89d8901b87e61d7af524bb9f95215de2622e05e86fcd212ebd/buffpy-3.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "774f5d66c74dd1298641034963b00684", "sha256": "839f47ed784655592cb0af3d33817a1dff81b852feb12c0db6be464fe3b94985" }, "downloads": -1, "filename": "buffpy-3.1.1.tar.gz", "has_sig": false, "md5_digest": "774f5d66c74dd1298641034963b00684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9203, "upload_time": "2019-09-02T16:41:04", "url": "https://files.pythonhosted.org/packages/6c/29/90090cf74b43784e2075dde684af2195b3e34d732ea22c213dd25cedbb29/buffpy-3.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c7fbaa387781ff2a31a0c860392d1396", "sha256": "1617539c6ad4beedfdcfe15ed1c8414bf40dbf089ee2c8d0a5ac876b3d1927fc" }, "downloads": -1, "filename": "buffpy-3.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c7fbaa387781ff2a31a0c860392d1396", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11599, "upload_time": "2019-09-02T16:41:01", "url": "https://files.pythonhosted.org/packages/95/97/b271fd404f89d8901b87e61d7af524bb9f95215de2622e05e86fcd212ebd/buffpy-3.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "774f5d66c74dd1298641034963b00684", "sha256": "839f47ed784655592cb0af3d33817a1dff81b852feb12c0db6be464fe3b94985" }, "downloads": -1, "filename": "buffpy-3.1.1.tar.gz", "has_sig": false, "md5_digest": "774f5d66c74dd1298641034963b00684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9203, "upload_time": "2019-09-02T16:41:04", "url": "https://files.pythonhosted.org/packages/6c/29/90090cf74b43784e2075dde684af2195b3e34d732ea22c213dd25cedbb29/buffpy-3.1.1.tar.gz" } ] }