Create image files or objects from pixela svg graphs.
Project description
# pixela2img
Create image files (or objects) from Pixela graphs.
#### example
* From this graph(<https://pixe.la/v1/users/pixela2img/graphs/pixela2img?date=20181229>)

* Create a `png` image below!

## Support
* Python 3.6+
## Usage
Install using `pip`.
```bash
$ pip install pixela2img
```
Create a `png` image with cli.
```bash
$ python -m pixela2img -u pixela2img -g pixela2img -d 20181229
$ open pixela2img-pixela2img-20181229.png
```
or Launch python interpreter and run command below
```hello_pixela.py
from pixela2img import Pixela2Img
pixela = Pixela2Img()
images = []
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181201'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181208'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181215'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181222'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181229'))
images[0].save('pixela.gif', save_all=True, append_images=images[1:], loop=0)
```
Created animation gif below!

## for Developer
#### require
* Python 3.7+
* pipenv
#### prepare
1. clone (or fork) this repository.
2. install dependencies with pipenv
3. edit code!
```bash
$ git clone https://github.com/ryosms/pixela2img
$ cd pixela2img
$ pipenv install
```
Create image files (or objects) from Pixela graphs.
#### example
* From this graph(<https://pixe.la/v1/users/pixela2img/graphs/pixela2img?date=20181229>)

* Create a `png` image below!

## Support
* Python 3.6+
## Usage
Install using `pip`.
```bash
$ pip install pixela2img
```
Create a `png` image with cli.
```bash
$ python -m pixela2img -u pixela2img -g pixela2img -d 20181229
$ open pixela2img-pixela2img-20181229.png
```
or Launch python interpreter and run command below
```hello_pixela.py
from pixela2img import Pixela2Img
pixela = Pixela2Img()
images = []
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181201'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181208'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181215'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181222'))
images.append(pixela.convert(user='pixela2img', graph='pixela2img', date='20181229'))
images[0].save('pixela.gif', save_all=True, append_images=images[1:], loop=0)
```
Created animation gif below!

## for Developer
#### require
* Python 3.7+
* pipenv
#### prepare
1. clone (or fork) this repository.
2. install dependencies with pipenv
3. edit code!
```bash
$ git clone https://github.com/ryosms/pixela2img
$ cd pixela2img
$ pipenv install
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixela2img-2018.1-py3-none-any.whl.
File metadata
- Download URL: pixela2img-2018.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d08c8baa57456b40adbd632af6a617142f2b4ada66028d76645a29a03a7c5d2
|
|
| MD5 |
6c174fba9da82e32d9e6765f8fff28f5
|
|
| BLAKE2b-256 |
0f943159efd92992cdd23794f64c570b62c8d76d8c5a5e4b6d37982ecacae809
|