%global _empty_manifest_terminate_build 0
Name: python-datawrapper
Version: 0.5.3
Release: 1
Summary: A light-weight python wrapper for the Datawrapper API
License: MIT
URL: https://github.com/chekos/datawrapper
Source0: https://mirrors.aliyun.com/pypi/web/packages/1d/ff/db068e0c8759806799a9bd95f6e369f13c182ef9f27034b430ff85fd0fdd/datawrapper-0.5.3.tar.gz
BuildArch: noarch
Requires: python3-importlib-metadata
Requires: python3-rich
Requires: python3-requests
Requires: python3-pandas
Requires: python3-ipython
%description
# datawrapper
[](https://pypi.python.org/pypi/datawrapper)
[](https://img.shields.io/pypi/dm/datawrappe)
[](https://github.com/chekos/datawrapper/actions?query=workflow%3Abuild)
[](https://pypi.org/project/datawrapper/)
[](https://github.com/chekos/datawrapper/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)
[](https://github.com/psf/black)
[](https://github.com/chekos/datawrapper/blob/master/.pre-commit-config.yaml)
[](https://github.com/chekos/datawrapper/releases)
[](https://github.com/chekos/datawrapper/blob/master/LICENSE)
A light-weight python wrapper for the Datawrapper API (v3). While it is not developed by Datawrapper officially, you can use it with your API credentials from datawrapper.de
## 🚀 Features
* Retrieve your account information (including folders).
* Add data to charts, tables or maps.
* Create charts, tables or maps - and add data from a `pandas.DataFrame` in one call!
* Update chart descriptions.
* Publish charts, tables or maps.
* Retrieve chart properties, update its metadata, and other information.
* Display a chart (as output of notebook cell - it gets weird because interactivity ¯\\_(ツ)_/¯ )
* Retrieve a chart, table or map's iframe code to embed.
* Export chart as png (still working on the svg and pdf parts).
* Move charts across folders and organizations.
* Delete charts.
* Get a list of all your charts.
## Installation
```bash
pip install -U datawrapper
```
or `pipenv`
```bash
pipenv install datawrapper
```
or install with `Poetry`
```bash
poetry add datawrapper
```
### Contributing
Clone the repository. Move into the directory on your terminal.
Install dependencies for development.
```sh
pipenv install --dev
```
Install pre-commit to run a battery of automatic quick fixes against your work.
```sh
pipenv run pre-commit install
```
## 📈 Releases
You can see the list of available releases on the [GitHub Releases](https://github.com/chekos/datawrapper/releases) page.
We follow [Semantic Versions](https://semver.org/) specification. When you're ready to make a new release, visit the releases page and create a new entry. Set the tags and press publish. That will trigger a GitHub Action that automatically deploys the code to the Python Package Index.
## 🛡 License
[](https://github.com/chekos/datawrapper/blob/master/LICENSE)
This project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/chekos/datawrapper/blob/master/LICENSE) for more details.
## 📃 Citation
```
@misc{datawrapper,
author = {chekos},
title = {A light-weight python wrapper for the Datawrapper API (v3). While it is not developed by Datawrapper officially, you can use it with your API credentials from datawrapper.de},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/chekos/datawrapper}}
}
```
## Credits
This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template).
%package -n python3-datawrapper
Summary: A light-weight python wrapper for the Datawrapper API
Provides: python-datawrapper
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-datawrapper
# datawrapper
[](https://pypi.python.org/pypi/datawrapper)
[](https://img.shields.io/pypi/dm/datawrappe)
[](https://github.com/chekos/datawrapper/actions?query=workflow%3Abuild)
[](https://pypi.org/project/datawrapper/)
[](https://github.com/chekos/datawrapper/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)
[](https://github.com/psf/black)
[](https://github.com/chekos/datawrapper/blob/master/.pre-commit-config.yaml)
[](https://github.com/chekos/datawrapper/releases)
[](https://github.com/chekos/datawrapper/blob/master/LICENSE)
A light-weight python wrapper for the Datawrapper API (v3). While it is not developed by Datawrapper officially, you can use it with your API credentials from datawrapper.de
## 🚀 Features
* Retrieve your account information (including folders).
* Add data to charts, tables or maps.
* Create charts, tables or maps - and add data from a `pandas.DataFrame` in one call!
* Update chart descriptions.
* Publish charts, tables or maps.
* Retrieve chart properties, update its metadata, and other information.
* Display a chart (as output of notebook cell - it gets weird because interactivity ¯\\_(ツ)_/¯ )
* Retrieve a chart, table or map's iframe code to embed.
* Export chart as png (still working on the svg and pdf parts).
* Move charts across folders and organizations.
* Delete charts.
* Get a list of all your charts.
## Installation
```bash
pip install -U datawrapper
```
or `pipenv`
```bash
pipenv install datawrapper
```
or install with `Poetry`
```bash
poetry add datawrapper
```
### Contributing
Clone the repository. Move into the directory on your terminal.
Install dependencies for development.
```sh
pipenv install --dev
```
Install pre-commit to run a battery of automatic quick fixes against your work.
```sh
pipenv run pre-commit install
```
## 📈 Releases
You can see the list of available releases on the [GitHub Releases](https://github.com/chekos/datawrapper/releases) page.
We follow [Semantic Versions](https://semver.org/) specification. When you're ready to make a new release, visit the releases page and create a new entry. Set the tags and press publish. That will trigger a GitHub Action that automatically deploys the code to the Python Package Index.
## 🛡 License
[](https://github.com/chekos/datawrapper/blob/master/LICENSE)
This project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/chekos/datawrapper/blob/master/LICENSE) for more details.
## 📃 Citation
```
@misc{datawrapper,
author = {chekos},
title = {A light-weight python wrapper for the Datawrapper API (v3). While it is not developed by Datawrapper officially, you can use it with your API credentials from datawrapper.de},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/chekos/datawrapper}}
}
```
## Credits
This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template).
%package help
Summary: Development documents and examples for datawrapper
Provides: python3-datawrapper-doc
%description help
# datawrapper
[](https://pypi.python.org/pypi/datawrapper)
[](https://img.shields.io/pypi/dm/datawrappe)
[](https://github.com/chekos/datawrapper/actions?query=workflow%3Abuild)
[](https://pypi.org/project/datawrapper/)
[](https://github.com/chekos/datawrapper/pulls?utf8=%E2%9C%93&q=is%3Apr%20author%3Aapp%2Fdependabot)
[](https://github.com/psf/black)
[](https://github.com/chekos/datawrapper/blob/master/.pre-commit-config.yaml)
[](https://github.com/chekos/datawrapper/releases)
[](https://github.com/chekos/datawrapper/blob/master/LICENSE)
A light-weight python wrapper for the Datawrapper API (v3). While it is not developed by Datawrapper officially, you can use it with your API credentials from datawrapper.de
## 🚀 Features
* Retrieve your account information (including folders).
* Add data to charts, tables or maps.
* Create charts, tables or maps - and add data from a `pandas.DataFrame` in one call!
* Update chart descriptions.
* Publish charts, tables or maps.
* Retrieve chart properties, update its metadata, and other information.
* Display a chart (as output of notebook cell - it gets weird because interactivity ¯\\_(ツ)_/¯ )
* Retrieve a chart, table or map's iframe code to embed.
* Export chart as png (still working on the svg and pdf parts).
* Move charts across folders and organizations.
* Delete charts.
* Get a list of all your charts.
## Installation
```bash
pip install -U datawrapper
```
or `pipenv`
```bash
pipenv install datawrapper
```
or install with `Poetry`
```bash
poetry add datawrapper
```
### Contributing
Clone the repository. Move into the directory on your terminal.
Install dependencies for development.
```sh
pipenv install --dev
```
Install pre-commit to run a battery of automatic quick fixes against your work.
```sh
pipenv run pre-commit install
```
## 📈 Releases
You can see the list of available releases on the [GitHub Releases](https://github.com/chekos/datawrapper/releases) page.
We follow [Semantic Versions](https://semver.org/) specification. When you're ready to make a new release, visit the releases page and create a new entry. Set the tags and press publish. That will trigger a GitHub Action that automatically deploys the code to the Python Package Index.
## 🛡 License
[](https://github.com/chekos/datawrapper/blob/master/LICENSE)
This project is licensed under the terms of the `MIT` license. See [LICENSE](https://github.com/chekos/datawrapper/blob/master/LICENSE) for more details.
## 📃 Citation
```
@misc{datawrapper,
author = {chekos},
title = {A light-weight python wrapper for the Datawrapper API (v3). While it is not developed by Datawrapper officially, you can use it with your API credentials from datawrapper.de},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/chekos/datawrapper}}
}
```
## Credits
This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template).
%prep
%autosetup -n datawrapper-0.5.3
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-datawrapper -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Jun 09 2023 Python_Bot - 0.5.3-1
- Package Spec generated