Python Flashcards
Python Flashcards
Release 0.1.0
1 Overview 1
1.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 What flashcards are . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 How does this work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.5 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.6 Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Installation 5
3 Usage 7
4 Reference 9
4.1 flashcards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5 Contributing 11
5.1 Bug reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.2 Documentation improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.3 Feature requests and feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.4 Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6 Authors 13
7 Changelog 15
7.1 0.3.0 (2018-11-27) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.2 0.1.0 (2017-03-31) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Index 21
i
ii
CHAPTER 1
Overview
docs
tests
package
1.1 Installation
A flashcard or flash card is a set of cards bearing information, as words or numbers, on either or both
sides, used in classroom drills or in private study. One writes a question on a card and an answer overleaf.
[Wikipedia]
1
Flashcards, Release 0.1.0
python-flashcards is a small tool, which receives cards from a YAML file, and shows them in a random order
so you can practice.
YAML format:
-
topic: The topic I will say out loud
content: The information I'll check after saying out loud what I know
keywords: reference, words
-
topic: Python
content: Is a widely used high-level programming language for general-purpose
˓→programming,
1.4 Usage
flashcards anatomy.yaml
If you want to show the hide the topic instead of the content:
flashcards -h
1.5 Documentation
https://python-flashcards.readthedocs.io/
1.6 Development
tox
Note, to combine the coverage data from all the tox environments run:
2 Chapter 1. Overview
Flashcards, Release 0.1.0
Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox
1.6. Development 3
Flashcards, Release 0.1.0
4 Chapter 1. Overview
CHAPTER 2
Installation
5
Flashcards, Release 0.1.0
6 Chapter 2. Installation
CHAPTER 3
Usage
import flashcards
7
Flashcards, Release 0.1.0
8 Chapter 3. Usage
CHAPTER 4
Reference
4.1 flashcards
9
Flashcards, Release 0.1.0
10 Chapter 4. Reference
CHAPTER 5
Contributing
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Flashcards could always use more documentation, whether as part of the official Flashcards docs, in docstrings, or
even on the web in blog posts, articles, and such.
11
Flashcards, Release 0.1.0
5.4 Development
tox
git add .
git commit -m "Your detailed description of your changes."
git push origin name-of-your-bugfix-or-feature
If you need some code review or feedback while you’re developing the code just make the pull request.
For merging, you should:
1. Include passing tests (run tox)1 .
2. Update documentation when there’s new API, functionality etc.
3. Add a note to CHANGELOG.rst about the changes.
4. Add yourself to AUTHORS.rst.
5.4.2 Tips
To run all the test environments in parallel (you need to pip install detox):
detox
1 If you don’t have all the necessary python versions available locally you can rely on Travis - it will run the tests for each change you add in the
pull request.
It will be slower though . . .
12 Chapter 5. Contributing
CHAPTER 6
Authors
13
Flashcards, Release 0.1.0
14 Chapter 6. Authors
CHAPTER 7
Changelog
15
Flashcards, Release 0.1.0
16 Chapter 7. Changelog
CHAPTER 8
• genindex
• modindex
• search
17
Flashcards, Release 0.1.0
f
flashcards, 9
19
Flashcards, Release 0.1.0
F
flashcards (module), 9
21