[![issues](https://img.shields.io/github/issues/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/issues)
[![closed issues](https://img.shields.io/github/issues-closed-raw/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/issues)
[![size](https://img.shields.io/github/repo-size/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/)
[![last commit](https://img.shields.io/github/last-commit/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/)
python-pixabay (pixabay) is unofficial API client library for pixabay API (https://pixabay.com/api/docs/)
### Install from pip
```sh
pip3 install pixabay
```
### Install from source
```
git clone https://github.com/Lukas0025/python-pixabay.git
cd python-pixabay
make install
```
## Getting started
### simple example
#### download image
```python
import pixabay.core
# init pixabay API
px = pixabay.core("YOUR API KEY")
# search for space
space = px.query("space")
# get len of hits len(space)
print("{} hits".format(len(space)))
# downalod fisrt image
space[0].download("space.jpg", "largeImage")
```
#### download video
```python
import pixabay.core
# init pixabay API
px = pixabay.core("YOUR API KEY")
# search for space
space = px.queryVideo("space")
# get len of hits len(space)
print("{} hits".format(len(space)))
# downalod fisrt video
space[0].download("space.mp4", "large")
```
* [examples](https://github.com/Lukas0025/python-pixabay/tree/master/examples)
* [documentation](https://python-pixabay.readthedocs.io/en/latest/annotated.html)
## Getting help
* Issues: https://github.com/Lukas0025/python-pixabay/issues
## Reporting bugs and contributing
* Want to report a bug or request a feature? Please open [an issue](https://github.com/Lukas0025/python-pixabay/issues/new).
* Want to help us with build? Contact me
## Licensing
python-pixabay is licensed under Apache2
Raw data
{
"_id": null,
"home_page": "https://github.com/Lukas0025/python-pixabay",
"name": "pixabay",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": "",
"keywords": "",
"author": "Luk\u00e1\u0161 Pleva\u010d",
"author_email": "lukas@plevac.eu",
"download_url": "https://files.pythonhosted.org/packages/e7/43/39a8394a3f40ecc14d0a020bbe0abd6bb67a43788b01b9ac53f52b990e1e/pixabay-0.0.5.tar.gz",
"platform": null,
"description": "[![issues](https://img.shields.io/github/issues/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/issues)\n[![closed issues](https://img.shields.io/github/issues-closed-raw/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/issues)\n[![size](https://img.shields.io/github/repo-size/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/)\n[![last commit](https://img.shields.io/github/last-commit/Lukas0025/python-pixabay)](https://github.com/Lukas0025/python-pixabay/)\n\npython-pixabay (pixabay) is unofficial API client library for pixabay API (https://pixabay.com/api/docs/)\n\n### Install from pip\n\n```sh\npip3 install pixabay\n```\n\n### Install from source\n\n```\ngit clone https://github.com/Lukas0025/python-pixabay.git\ncd python-pixabay\nmake install\n```\n\n## Getting started\n\n### simple example\n\n#### download image\n\n```python\nimport pixabay.core\n\n# init pixabay API\npx = pixabay.core(\"YOUR API KEY\")\n\n# search for space\nspace = px.query(\"space\")\n\n# get len of hits len(space)\nprint(\"{} hits\".format(len(space)))\n\n# downalod fisrt image\nspace[0].download(\"space.jpg\", \"largeImage\")\n```\n\n#### download video\n```python\nimport pixabay.core\n\n# init pixabay API\npx = pixabay.core(\"YOUR API KEY\")\n\n# search for space\nspace = px.queryVideo(\"space\")\n\n# get len of hits len(space)\nprint(\"{} hits\".format(len(space)))\n\n# downalod fisrt video\nspace[0].download(\"space.mp4\", \"large\")\n```\n\n\n* [examples](https://github.com/Lukas0025/python-pixabay/tree/master/examples)\n* [documentation](https://python-pixabay.readthedocs.io/en/latest/annotated.html)\n\n## Getting help\n\n* Issues: https://github.com/Lukas0025/python-pixabay/issues\n\n## Reporting bugs and contributing\n\n* Want to report a bug or request a feature? Please open [an issue](https://github.com/Lukas0025/python-pixabay/issues/new).\n* Want to help us with build? Contact me\n\n## Licensing\n\npython-pixabay is licensed under Apache2\n",
"bugtrack_url": null,
"license": "",
"summary": "Unofficial python pixabay API client",
"version": "0.0.5",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c07a1e8b6a4c4ecdbd8ba48340529b23",
"sha256": "172054d9eba779c48d2cc262448356b162d1b1896cc00a510ddce84a8827eb27"
},
"downloads": -1,
"filename": "pixabay-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "c07a1e8b6a4c4ecdbd8ba48340529b23",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 10407,
"upload_time": "2022-12-05T13:38:40",
"upload_time_iso_8601": "2022-12-05T13:38:40.390227Z",
"url": "https://files.pythonhosted.org/packages/e7/43/39a8394a3f40ecc14d0a020bbe0abd6bb67a43788b01b9ac53f52b990e1e/pixabay-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-05 13:38:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Lukas0025",
"github_project": "python-pixabay",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pixabay"
}