Purrsong

Latest version: v0.1.9

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

4.7.10

conda create -n purrsong python=3.6
conda activate purrsong


2. Install libraries for development

pip install tensorflow
pip install opencv-python


3. Install libraries for PyPI upload
[Instructions(Korean)](https://medium.com/onlytojay/%ED%8C%8C%EC%9D%B4%EC%8D%AC-%EB%B0%B0%ED%8F%AC-%ED%8C%A8%ED%82%A4%EC%A7%80-%EB%A7%8C%EB%93%A4%EA%B8%B0-%EC%A4%91%EA%B0%84%EA%B2%80%ED%86%A0-a2dade70c247)

pip install setuptools Requirement already satisfied (--> conda env default provided)
pip install wheel Requirement already satisfied (--> conda env default provided)
pip install twine


4. Clone this repo, add setup.py, setup.cfg
4.1. cloned this repo

git clone https://github.com/jeakwon/purrsong.git


4.2. added `setup.py`
python
from setuptools import setup, find_packages

setup(
name = 'purrsong',
version = '0.0.1',
description = 'purrsong',
author = 'jeakwon',
author_email = 'onlytojaygmail.com',
url = 'https://github.com/jeakwon/ccpy',
packages = find_packages(exclude = []),
keywords = ['purrsong'],
python_requires = '>=3.6',
license = 'LICENSE.txt',
install_requires = [],
)


4.3. added `setup.cfg`

[metadata]
description-file = README.md


4.4. current folder structure

purrsong
├── .gitignore
├── LICENSE
├── README.md
├── setup.cfg
└── setup.py


4.5. git commit, push

5. Create empty PyPI package
5.1. created `.whl` file
In the prompt, with `(purrsong)` env activated in `purrsong` directory,

python setup.py bdist_wheel


5.2. uploaded `.whl` file
Uploaded wheel with `twine` module

twine upload dist\purrsong-0.0.1-py3-none-any.whl

For your information, twine requires PyPI id/pw. register PyPI first.

5.3. check upload

pip install purrsong


6. Add purrsong module
6.1. added `purrsong` folder with `__init__.py`

purrsong
├── purrsong add folder
└── __init__.py add __init__.py
├── .gitignore
├── LICENSE
├── README.md
├── setup.cfg
└── setup.py


6.2. updated package
General procedure, when update
1. change `purrsong` module

0.6

How to fix
`import os` in `downloader.py`?

1. change `downloader.py`

0.5

How to fix
change
python
from purrsong.downloader import download_file_from_google_drive

python
from purrsong.datasets.downloader import download_file_from_google_drive


1. change `cats.py`

0.03

8.2. change `setup.py` version from manual to automatic
__`setup.py`__
python
import purrsong add this line
setup(
version = purrsong.__version__, add this line
)


8.3. updated package
General procedure, when update
1. change `purrsong` module

0.1.6

3. `python setup.py bdist_wheel` (creates new .whl)
4. `twine upload dist\purrsong-0.1.6-py3-none-any.whl`
5. git push
6. `pip install --upgrade purrsong`


cats dataset feature update 2019-08-25

(minor)changed image array from BGR to RGB
new feature `purrsong.datasets.cats.Cats.face`
with landmark datea, this method returns face image array, with given factor

How to use
python
import purrsong as ps
cats = ps.load_cats()
cats.face(0)
>>> np.array img
cats.face(0, factor=1)
>>> np.array img with tightly bounded to landmark


1. updated `purrsong\datasets\cats.py`

0.1.5

3. `python setup.py bdist_wheel` (creates new .whl)
4. `twine upload dist\purrsong-0.1.5-py3-none-any.whl`
5. git push
6. `pip install --upgrade purrsong`



2019-08-25
0. relaced cats dataset
if previous data exists do below
python
import purrsong as ps
ps.list_datasets(fresh=True)
ps.load_cats(fresh=True)


handling dataset
python
import purrsong as ps

cats = ps.load_cats()
tatal data num
len(cats)

index 0 data
cats[0]['image']
cats[0]['landmark']

same with above
cats.image(0)
cats.landmark(0)


1. Version upgraded to 0.1.0 since new functions added

1. added `cats.py`

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.