ft-neko 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ft_neko-1.0.0/.flake8 +5 -0
- ft_neko-1.0.0/.forgejo/workflows/main.yaml +27 -0
- ft_neko-1.0.0/.gitignore +9 -0
- ft_neko-1.0.0/LICENSE.txt +16 -0
- ft_neko-1.0.0/Makefile +19 -0
- ft_neko-1.0.0/PKG-INFO +63 -0
- ft_neko-1.0.0/Pipfile +16 -0
- ft_neko-1.0.0/Pipfile.lock +654 -0
- ft_neko-1.0.0/README.md +53 -0
- ft_neko-1.0.0/ft_neko.egg-info/PKG-INFO +63 -0
- ft_neko-1.0.0/ft_neko.egg-info/SOURCES.txt +54 -0
- ft_neko-1.0.0/ft_neko.egg-info/dependency_links.txt +1 -0
- ft_neko-1.0.0/ft_neko.egg-info/entry_points.txt +3 -0
- ft_neko-1.0.0/ft_neko.egg-info/requires.txt +1 -0
- ft_neko-1.0.0/ft_neko.egg-info/scm_file_list.json +50 -0
- ft_neko-1.0.0/ft_neko.egg-info/scm_version.json +8 -0
- ft_neko-1.0.0/ft_neko.egg-info/top_level.txt +1 -0
- ft_neko-1.0.0/neko/__init__.py +0 -0
- ft_neko-1.0.0/neko/ft.py +61 -0
- ft_neko-1.0.0/neko/images/awake.ppm +0 -0
- ft_neko-1.0.0/neko/images/down1.ppm +0 -0
- ft_neko-1.0.0/neko/images/down2.ppm +0 -0
- ft_neko-1.0.0/neko/images/dtogi1.ppm +0 -0
- ft_neko-1.0.0/neko/images/dtogi2.ppm +0 -0
- ft_neko-1.0.0/neko/images/dwleft1.ppm +0 -0
- ft_neko-1.0.0/neko/images/dwleft2.ppm +0 -0
- ft_neko-1.0.0/neko/images/dwright1.ppm +0 -0
- ft_neko-1.0.0/neko/images/dwright2.ppm +0 -0
- ft_neko-1.0.0/neko/images/jare2.ppm +0 -0
- ft_neko-1.0.0/neko/images/kaki1.ppm +0 -0
- ft_neko-1.0.0/neko/images/kaki2.ppm +0 -0
- ft_neko-1.0.0/neko/images/left1.ppm +0 -0
- ft_neko-1.0.0/neko/images/left2.ppm +0 -0
- ft_neko-1.0.0/neko/images/ltogi1.ppm +0 -0
- ft_neko-1.0.0/neko/images/ltogi2.ppm +0 -0
- ft_neko-1.0.0/neko/images/mati2.ppm +0 -0
- ft_neko-1.0.0/neko/images/mati3.ppm +0 -0
- ft_neko-1.0.0/neko/images/right1.ppm +0 -0
- ft_neko-1.0.0/neko/images/right2.ppm +0 -0
- ft_neko-1.0.0/neko/images/rtogi1.ppm +0 -0
- ft_neko-1.0.0/neko/images/rtogi2.ppm +0 -0
- ft_neko-1.0.0/neko/images/sleep1.ppm +0 -0
- ft_neko-1.0.0/neko/images/sleep2.ppm +0 -0
- ft_neko-1.0.0/neko/images/space.ppm +0 -0
- ft_neko-1.0.0/neko/images/up1.ppm +0 -0
- ft_neko-1.0.0/neko/images/up2.ppm +0 -0
- ft_neko-1.0.0/neko/images/upleft1.ppm +0 -0
- ft_neko-1.0.0/neko/images/upleft2.ppm +0 -0
- ft_neko-1.0.0/neko/images/upright1.ppm +0 -0
- ft_neko-1.0.0/neko/images/upright2.ppm +0 -0
- ft_neko-1.0.0/neko/images/utogi1.ppm +0 -0
- ft_neko-1.0.0/neko/images/utogi2.ppm +0 -0
- ft_neko-1.0.0/neko/neko.py +419 -0
- ft_neko-1.0.0/neko/rgb.py +43 -0
- ft_neko-1.0.0/pyproject.toml +24 -0
- ft_neko-1.0.0/setup.cfg +4 -0
ft_neko-1.0.0/.flake8
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
on:
|
|
2
|
+
push:
|
|
3
|
+
branches: [main]
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
checks:
|
|
8
|
+
runs-on: codeberg-tiny
|
|
9
|
+
steps:
|
|
10
|
+
- name: Check out repository
|
|
11
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
12
|
+
|
|
13
|
+
- name: Set up Python
|
|
14
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
15
|
+
with:
|
|
16
|
+
python-version-file: Pipfile
|
|
17
|
+
cache: pipenv
|
|
18
|
+
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: |
|
|
21
|
+
python -V
|
|
22
|
+
pip install -q pipenv --root-user-action=ignore
|
|
23
|
+
pipenv sync -q -d
|
|
24
|
+
pipenv run pip list
|
|
25
|
+
|
|
26
|
+
- name: Run checks
|
|
27
|
+
run: pipenv run make checks
|
ft_neko-1.0.0/.gitignore
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Files in "neko/images" are modified from xneko and in the public domain.
|
|
2
|
+
|
|
3
|
+
All other files ("This program") are Copyright Alexander Dietrich.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify
|
|
6
|
+
it under the terms of the GNU General Public License as published by
|
|
7
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
(at your option) any later version.
|
|
9
|
+
|
|
10
|
+
This program is distributed in the hope that it will be useful,
|
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
GNU General Public License for more details.
|
|
14
|
+
|
|
15
|
+
You should have received a copy of the GNU General Public License
|
|
16
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
ft_neko-1.0.0/Makefile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.PHONY: checks
|
|
2
|
+
checks: lint
|
|
3
|
+
|
|
4
|
+
.PHONY: lint
|
|
5
|
+
lint:
|
|
6
|
+
@echo "===== flake8"
|
|
7
|
+
flake8
|
|
8
|
+
@echo ""
|
|
9
|
+
@echo "===== zuban"
|
|
10
|
+
zuban check
|
|
11
|
+
@echo ""
|
|
12
|
+
|
|
13
|
+
.PHONY: neko
|
|
14
|
+
neko:
|
|
15
|
+
python -m neko.neko
|
|
16
|
+
|
|
17
|
+
.PHONY: rgb
|
|
18
|
+
rgb:
|
|
19
|
+
python -m neko.rgb
|
ft_neko-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ft-neko
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Neko for FlaschenTaschen
|
|
5
|
+
Requires-Python: >=3.12
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE.txt
|
|
8
|
+
Requires-Dist: click>=8.5.0
|
|
9
|
+
Dynamic: license-file
|
|
10
|
+
|
|
11
|
+
# Neko for FlaschenTaschen
|
|
12
|
+
|
|
13
|
+
[Neko] for [FlaschenTaschen], based on `xneko`.
|
|
14
|
+
|
|
15
|
+
[Neko]: https://en.wikipedia.org/wiki/Neko_(software)
|
|
16
|
+
[FlaschenTaschen]: https://github.com/hzeller/flaschen-taschen
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
$ pipx install ft-neko
|
|
22
|
+
[...]
|
|
23
|
+
|
|
24
|
+
$ ft-neko --help
|
|
25
|
+
Usage: ft-neko [OPTIONS]
|
|
26
|
+
|
|
27
|
+
Neko for FlaschenTaschen
|
|
28
|
+
|
|
29
|
+
Options:
|
|
30
|
+
--host TEXT Hostname of the FT server. (Default: localhost)
|
|
31
|
+
--port INTEGER Port number of the FT server. (Default: 1337)
|
|
32
|
+
--width INTEGER Width of the FT display. (Default: 45)
|
|
33
|
+
--height INTEGER Height of the FT display. (Default: 35)
|
|
34
|
+
--layer INTEGER RANGE Layer of the FT display. (Default: 0) [x>=0]
|
|
35
|
+
--speed INTEGER RANGE Neko speed. (Default: 4) [x>=1]
|
|
36
|
+
--sleepy FLOAT RANGE Neko sleepiness. (Default: 0.5) [0.0<=x<=1.0]
|
|
37
|
+
--help Show this message and exit.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Development
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Install requirements
|
|
44
|
+
pipenv sync -d
|
|
45
|
+
# Activate environment
|
|
46
|
+
pipenv shell
|
|
47
|
+
|
|
48
|
+
# Run checks
|
|
49
|
+
make checks
|
|
50
|
+
# Run Neko with default options
|
|
51
|
+
make neko
|
|
52
|
+
# Run Neko with custom options
|
|
53
|
+
python -m neko.neko --help
|
|
54
|
+
|
|
55
|
+
# Create release
|
|
56
|
+
rm -r dist
|
|
57
|
+
python -m build
|
|
58
|
+
twine upload dist/*
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
Trans Rights are Human Rights! 🏳️⚧️ 🏳️🌈
|
ft_neko-1.0.0/Pipfile
ADDED