Skip to content

Commit b4235ac

Browse files
committed
Update README and version number
1 parent 6722a3c commit b4235ac

3 files changed

Lines changed: 55 additions & 19 deletions

File tree

README.md

Lines changed: 53 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)
55

66
This repository contains the code to:
7-
- Dump gear data from the game's info box screenshots taken from your Android device into either JSON format or a comma-separated string.
7+
- Dump gear data from the game's info box screenshots taken from your Android device into either JSON format or a
8+
comma-separated string.
89

910
With these feature(s) to come (in no particular order and without promises):
1011
- Optimise gear for your character(s) in the game.
@@ -13,26 +14,47 @@ With these feature(s) to come (in no particular order and without promises):
1314
[Before reading any further, please note that this project is...](https://github.com/PythonTryHard/agf-toolkit#note-this-repository-is)
1415

1516
## Installation
17+
### From release (recommended)
18+
```sh
19+
pip install https://github.com/PythonTryHard/agf-toolkit/releases/download/v0.1.0/agf-toolkit-0.1.0-py3-none-any.whl
20+
```
21+
22+
### From source
1623
You'll need:
17-
- Python 3.10+ (primary runtime)
18-
- Python 3.11 support is currently blocked by PaddleOCR (and its underlying `paddlepaddle` package). When will these packages add pre-built wheels, who knows.
24+
- Python 3.10 (primary runtime)
25+
- Python 3.11 support is currently blocked by `paddleocr`'s underlying `paddlepaddle` package. When will that
26+
package add pre-built wheels, who knows.
1927
- [`poetry`](https://python-poetry.org/docs/#installation) (to install dependencies)
20-
- [`adb`](https://developer.android.com/studio/command-line/adb) (to interact with your Android device)
2128

22-
Assuming you have installed the above, install the dependencies by running:
29+
You can
2330
```sh
2431
git clone https://github.com/PythonTryHard/agf-toolkit.git
2532
cd agf-toolkit
2633
poetry install
2734
```
28-
Then, ensure `adb` is running on your machine with:
29-
```sh
30-
adb start-server
31-
```
32-
When `adb` is running, after [configuring](#configuration) you can run the toolkit with:
35+
36+
Afterward you can run the toolkit with:
3337
```sh
3438
poetry run python -m agf_tookit
3539
```
40+
This should output:
41+
```
42+
$ python -m agf_toolkit
43+
44+
Usage: python -m agf_toolkit [OPTIONS] COMMAND [ARGS]...
45+
46+
╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮
47+
│ --install-completion Install completion for the current shell. │
48+
│ --show-completion Show completion for the current shell, to copy it or │
49+
│ customize the installation. │
50+
│ --help Show this message and exit. │
51+
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
52+
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────╮
53+
│ calibrate Calibrate the toolkit before parsing (default: using Android Debug Bridge). │
54+
│ parse-files Parse screenshots. Multiple files can be provided to parse at once. │
55+
│ parse-screen Start a live parsing session using Android Debug Bridge. │
56+
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
57+
```
3658
## Configuration
3759
The toolkit is configured via a `.env` file. The (boiled down) example configuration is as follows:
3860
```sh
@@ -41,22 +63,36 @@ LOGGING_LEVEL=""
4163
IDENTIFIER=""
4264
PORT=""
4365
```
44-
- `LOGGING_LEVEL` is the logging level to use. Valid values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`. If not set, defaults to `INFO`.
45-
- `IDENTIFIER` is for the serial number of your Android device. You can find this by running `adb devices` in your terminal. If you're connecting via `IP`, this is the IP address of your Android device.
66+
- `LOGGING_LEVEL` is the logging level to use. Valid values are `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`. If not
67+
set, defaults to `INFO`.
68+
- `IDENTIFIER` is for the serial number of your Android device. You can find this by running `adb devices` in your
69+
- terminal. If you're connecting via `IP`, this is the IP address of your Android device.
4670
- `PORT` is the debugging port of your Android device. This is ignored when connecting via `USB`.
4771

72+
## Contributing
73+
Set up the development environment with:
74+
```sh
75+
poetry install --with dev
76+
poetry run pre-commit install
77+
```
78+
If your contribution involves `agf_toolkit.processor`, please run `poetry run pytest` at repository root to ensure that
79+
your changes don't break compatibility.
4880

4981
## Note: This repository is...
5082
### Not feature-complete.
51-
I'm working on this solo, while also juggling irl work. This was supposed to be a rewrite of another private project, but I decided at the time of writing that this was enough to be of use to anyone wanting to write code for the game.
83+
This was supposed to be a rewrite of another private project, but along the way features and ideas came up, so I decided
84+
to expand the scope and implement them. This takes time, so be patient. Or better yet, hop in!
5285

5386
### Not stable, nor tested thoroughly.
54-
A lot of things are still in the works, a lot of things are written on a whim. I haven't written any tests, the main loop is not decoupled from `__main__` to test, and I don't have enough screenshots to properly test the screenshot reader.
87+
A lot of things are still in the works, a lot of things are written on a whim. Some tests are written, but I'm not sure
88+
if everything is properly tested. `coverage`, yes, but I'll look at that later.
5589

56-
As the project scales, more and more tests will be needed. I'll try to write them as I go, but I can't promise anything.
5790

5891
### Not written by a professional programmer.
59-
I'm a hobbyist try-hard programmer (as evident by my username) that just write too much code. If anything can be improved, please let me know. I'm always open to suggestions.
92+
I'm a hobbyist try-hard programmer (as evident by my username) that just write too much code. My code can be very
93+
opaque, hard to parse, and not follow best practices. If anything can be improved, please let me know. I'm always open
94+
to suggestions.
6095

6196
### Not meant to be used by the general public.
62-
A lot of things in this repository needs some work to be usable by the general public. I will get around to writing a guide for this soon enough.
97+
A lot of things in this repository needs some work to be usable by the public. I will get around to writing a guide for
98+
this soon enough. But until the first `v1.x` release, don't hope for much.

agf_toolkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__description__ = "A toolkit for Artery Gear: Fusion"
2-
__version__ = "0.0.1"
2+
__version__ = "0.1.0"
33
__author__ = "PythonTryHard - Arisu#9695 (<@!263986827214585857>)"
44

55
import os

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "agf_toolkit"
3-
version = "0.0.1"
3+
version = "0.1.0"
44
description = "A toolkit for Artery Gear: Fusion"
55
authors = ["PythonTryHard <31789326+PythonTryHard@users.noreply.github.com>"]
66
license = "BSD-3-Clause"

0 commit comments

Comments
 (0)