https://github.com/drillbits/pycure
All about Japanese battle heroine "Pretty Cure".
https://github.com/drillbits/pycure
Last synced: 5 months ago
JSON representation
All about Japanese battle heroine "Pretty Cure".
- Host: GitHub
- URL: https://github.com/drillbits/pycure
- Owner: drillbits
- Created: 2013-08-03T09:02:16.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T02:01:39.000Z (almost 6 years ago)
- Last Synced: 2025-09-25T08:20:03.651Z (9 months ago)
- Language: Python
- Size: 145 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
======
pycure
======
.. image:: https://drone.io/github.com/drillbits/pycure/status.png
:target: https://drone.io/github.com/drillbits/pycure/latest
All about Japanese battle heroine "Pretty Cure".
Inspired by Acme::PrettyCure.
Requirements
============
- Python 3.3
Installation
============
::
$ pip install pycure
Usage
=====
Get the most recent series.
::
$ python
>>> from pycure import Precure
>>> p = Precure.now
>>> p.title
'ドキドキ!プリキュア'
>>> p.girls[0].name
'相田マナ'
>>> p.girls[0].transform()
みなぎる愛! キュアハート!
愛を無くした悲しいジコチューさん、このキュアハートがあなたのドキドキ取り戻してみせる!
>>> p.girls[0].name
'キュアハート'
Get from slug.
::
$ python
>>> from pycure import Precure
>>> Precure.slugs
['', 'maxheart', 'splashstar', 'yes', 'gogo', 'fresh', 'heartcatch', 'suite', 'smile', 'dokidoki']
>>> p = Precure["smile"]
>>> p.girls[2].name
'黄瀬やよい'
>>> p.girls[2].transform()
ピカピカピカリンジャンケンポン! キュアピース!
Precure girls of the first series require her partner to transform.
::
$ python
>>> from pycure import Precure
>>> p = Precure[""]
>>> p.title
'ふたりはプリキュア'
>>> p.girls[0].name
'美墨なぎさ'
>>> p.girls[1].name
'雪城ほのか'
>>> p.girls[0].transform()
(snip)
pycure.girl.PartnerInvalidError
>>> p.girls[0].transform("雪城ほのか")
光の使者、キュアブラック!
光の使者、キュアホワイト!
ふたりはプリキュア!
闇の力のしもべ達よ!
とっととお家に帰りなさい!
>>> p.girls[0].name
'キュアブラック'
>>> p.girls[1].name
'キュアホワイト'