aenir 0.0.post1.dev1242__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.
Files changed (52) hide show
  1. aenir-0.0.post1.dev1242/.coveragerc +28 -0
  2. aenir-0.0.post1.dev1242/.gitignore +60 -0
  3. aenir-0.0.post1.dev1242/.readthedocs.yml +27 -0
  4. aenir-0.0.post1.dev1242/AUTHORS.md +3 -0
  5. aenir-0.0.post1.dev1242/CHANGELOG.md +5 -0
  6. aenir-0.0.post1.dev1242/CONTRIBUTING.md +349 -0
  7. aenir-0.0.post1.dev1242/LICENSE.txt +21 -0
  8. aenir-0.0.post1.dev1242/MANIFEST.in +1 -0
  9. aenir-0.0.post1.dev1242/PKG-INFO +133 -0
  10. aenir-0.0.post1.dev1242/README.md +111 -0
  11. aenir-0.0.post1.dev1242/docs/Makefile +29 -0
  12. aenir-0.0.post1.dev1242/docs/_static/.gitignore +1 -0
  13. aenir-0.0.post1.dev1242/docs/authors.md +4 -0
  14. aenir-0.0.post1.dev1242/docs/changelog.md +4 -0
  15. aenir-0.0.post1.dev1242/docs/conf.py +304 -0
  16. aenir-0.0.post1.dev1242/docs/contributing.md +4 -0
  17. aenir-0.0.post1.dev1242/docs/index.md +39 -0
  18. aenir-0.0.post1.dev1242/docs/license.md +5 -0
  19. aenir-0.0.post1.dev1242/docs/readme.md +4 -0
  20. aenir-0.0.post1.dev1242/docs/requirements.txt +6 -0
  21. aenir-0.0.post1.dev1242/logo.png +0 -0
  22. aenir-0.0.post1.dev1242/pyproject.toml +11 -0
  23. aenir-0.0.post1.dev1242/requirements.txt +17 -0
  24. aenir-0.0.post1.dev1242/setup.cfg +74 -0
  25. aenir-0.0.post1.dev1242/setup.py +23 -0
  26. aenir-0.0.post1.dev1242/src/aenir/.create_table_from_csv.py +68 -0
  27. aenir-0.0.post1.dev1242/src/aenir/__init__.py +22 -0
  28. aenir-0.0.post1.dev1242/src/aenir/_exceptions.py +180 -0
  29. aenir-0.0.post1.dev1242/src/aenir/_logging.py +65 -0
  30. aenir-0.0.post1.dev1242/src/aenir/games.py +55 -0
  31. aenir-0.0.post1.dev1242/src/aenir/morph.py +2087 -0
  32. aenir-0.0.post1.dev1242/src/aenir/skeleton.py +149 -0
  33. aenir-0.0.post1.dev1242/src/aenir/static/binding-blade/cleaned_stats.db +0 -0
  34. aenir-0.0.post1.dev1242/src/aenir/static/blazing-sword/cleaned_stats.db +0 -0
  35. aenir-0.0.post1.dev1242/src/aenir/static/genealogy-of-the-holy-war/cleaned_stats.db +0 -0
  36. aenir-0.0.post1.dev1242/src/aenir/static/path-of-radiance/cleaned_stats.db +0 -0
  37. aenir-0.0.post1.dev1242/src/aenir/static/the-sacred-stones/cleaned_stats.db +0 -0
  38. aenir-0.0.post1.dev1242/src/aenir/static/thracia-776/cleaned_stats.db +0 -0
  39. aenir-0.0.post1.dev1242/src/aenir/stats.py +342 -0
  40. aenir-0.0.post1.dev1242/src/aenir.egg-info/PKG-INFO +133 -0
  41. aenir-0.0.post1.dev1242/src/aenir.egg-info/SOURCES.txt +51 -0
  42. aenir-0.0.post1.dev1242/src/aenir.egg-info/dependency_links.txt +1 -0
  43. aenir-0.0.post1.dev1242/src/aenir.egg-info/not-zip-safe +1 -0
  44. aenir-0.0.post1.dev1242/src/aenir.egg-info/requires.txt +8 -0
  45. aenir-0.0.post1.dev1242/src/aenir.egg-info/top_level.txt +1 -0
  46. aenir-0.0.post1.dev1242/tests/conftest.py +10 -0
  47. aenir-0.0.post1.dev1242/tests/test_games.py +84 -0
  48. aenir-0.0.post1.dev1242/tests/test_morph.py +4129 -0
  49. aenir-0.0.post1.dev1242/tests/test_skeleton.py +25 -0
  50. aenir-0.0.post1.dev1242/tests/test_stats.py +667 -0
  51. aenir-0.0.post1.dev1242/tests/weapon.py +23 -0
  52. aenir-0.0.post1.dev1242/tox.ini +93 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = aenir
5
+ # omit = bad_file.py
6
+
7
+ [paths]
8
+ source =
9
+ src/
10
+ */site-packages/
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
@@ -0,0 +1,60 @@
1
+ # Temporary and binary files
2
+ *~
3
+ *.py[cod]
4
+ *.so
5
+ *.cfg
6
+ !.isort.cfg
7
+ !setup.cfg
8
+ *.orig
9
+ *.log
10
+ *.pot
11
+ __pycache__/*
12
+ .cache/*
13
+ .*.swp
14
+ */.ipynb_checkpoints/*
15
+ .DS_Store
16
+
17
+ # Project files
18
+ .ropeproject
19
+ .project
20
+ .pydevproject
21
+ .settings
22
+ .idea
23
+ .vscode
24
+ tags
25
+
26
+ # Package files
27
+ *.egg
28
+ *.eggs/
29
+ .installed.cfg
30
+ *.egg-info
31
+
32
+ # Unittest and coverage
33
+ htmlcov/*
34
+ .coverage
35
+ .coverage.*
36
+ .tox
37
+ junit*.xml
38
+ coverage.xml
39
+ .pytest_cache/
40
+
41
+ # Build and docs folder/files
42
+ build/*
43
+ dist/*
44
+ sdist/*
45
+ docs/api/*
46
+ docs/_rst/*
47
+ docs/_build/*
48
+ cover/*
49
+ MANIFEST
50
+
51
+ # Per-project virtualenvs
52
+ .venv*/
53
+ .conda*/
54
+ .python-version
55
+
56
+ # MY IGNORED FILES #
57
+ .vim/
58
+ nyet.sql
59
+ stat-tables.ods
60
+ classes__mounting_gains0.csv_
@@ -0,0 +1,27 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Build documentation in the docs/ directory with Sphinx
8
+ sphinx:
9
+ configuration: docs/conf.py
10
+
11
+ # Build documentation with MkDocs
12
+ #mkdocs:
13
+ # configuration: mkdocs.yml
14
+
15
+ # Optionally build your docs in additional formats such as PDF
16
+ formats:
17
+ - pdf
18
+
19
+ build:
20
+ os: ubuntu-22.04
21
+ tools:
22
+ python: "3.11"
23
+
24
+ python:
25
+ install:
26
+ - requirements: docs/requirements.txt
27
+ - {path: ., method: pip}
@@ -0,0 +1,3 @@
1
+ # Contributors
2
+
3
+ * gchang12 [gc8@hawaii.edu](mailto:gc8@hawaii.edu)
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## Version 0.1 (development)
4
+
5
+ - Stat comparison is up and operational
@@ -0,0 +1,349 @@
1
+ ```{todo} THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
2
+
3
+ The document assumes you are using a source repository service that promotes a
4
+ contribution model similar to [GitHub's fork and pull request workflow].
5
+ While this is true for the majority of services (like GitHub, GitLab,
6
+ BitBucket), it might not be the case for private repositories (e.g., when
7
+ using Gerrit).
8
+
9
+ Also notice that the code examples might refer to GitHub URLs or the text
10
+ might use GitHub specific terminology (e.g., *Pull Request* instead of *Merge
11
+ Request*).
12
+
13
+ Please make sure to check the document having these assumptions in mind
14
+ and update things accordingly.
15
+ ```
16
+
17
+ ```{todo} You might want to have a look on [PyScaffold's contributor's guide],
18
+
19
+ especially if your project is open source. The text should be very similar to
20
+ this template, but there are a few extra contents that you might decide to
21
+ also include, like mentioning labels of your issue tracker or automated
22
+ releases.
23
+ ```
24
+
25
+ # Contributing
26
+
27
+ Welcome to `aenir` contributor's guide.
28
+
29
+ This document focuses on getting any potential contributor familiarized with
30
+ the development processes, but [other kinds of contributions] are also appreciated.
31
+
32
+ If you are new to using [git] or have never collaborated in a project previously,
33
+ please have a look at [contribution-guide.org]. Other resources are also
34
+ listed in the excellent [guide created by FreeCodeCamp] [^contrib1].
35
+
36
+ Please notice, all users and contributors are expected to be **open,
37
+ considerate, reasonable, and respectful**. When in doubt,
38
+ [Python Software Foundation's Code of Conduct] is a good reference in terms of
39
+ behavior guidelines.
40
+
41
+ ## Issue Reports
42
+
43
+ If you experience bugs or general issues with `aenir`, please have a look
44
+ on the [issue tracker].
45
+ If you don't see anything useful there, please feel free to fire an issue report.
46
+
47
+ :::{tip}
48
+ Please don't forget to include the closed issues in your search.
49
+ Sometimes a solution was already reported, and the problem is considered
50
+ **solved**.
51
+ :::
52
+
53
+ New issue reports should include information about your programming environment
54
+ (e.g., operating system, Python version) and steps to reproduce the problem.
55
+ Please try also to simplify the reproduction steps to a very minimal example
56
+ that still illustrates the problem you are facing. By removing other factors,
57
+ you help us to identify the root cause of the issue.
58
+
59
+ ## Documentation Improvements
60
+
61
+ You can help improve `aenir` docs by making them more readable and coherent, or
62
+ by adding missing information and correcting mistakes.
63
+
64
+ `aenir` documentation uses [Sphinx] as its main documentation compiler.
65
+ This means that the docs are kept in the same repository as the project code, and
66
+ that any documentation update is done in the same way was a code contribution.
67
+
68
+ This documentation is written in Markdown.
69
+
70
+ :::{tip}
71
+ Please notice that the [GitHub web interface] provides a quick way of
72
+ propose changes in `aenir`'s files. While this mechanism can
73
+ be tricky for normal code contributions, it works perfectly fine for
74
+ contributing to the docs, and can be quite handy.
75
+
76
+ If you are interested in trying this method out, please navigate to
77
+ the `docs` folder in the source [repository], find which file you
78
+ would like to propose changes and click in the little pencil icon at the
79
+ top, to open [GitHub's code editor]. Once you finish editing the file,
80
+ please write a message in the form at the bottom of the page describing
81
+ which changes have you made and what are the motivations behind them and
82
+ submit your proposal.
83
+ :::
84
+
85
+ When working on documentation changes in your local machine, you can
86
+ compile them using [tox] :
87
+
88
+ ```
89
+ tox -e docs
90
+ ```
91
+
92
+ and use Python's built-in web server for a preview in your web browser
93
+ (`http://localhost:8000`):
94
+
95
+ ```
96
+ python3 -m http.server --directory 'docs/_build/html'
97
+ ```
98
+
99
+ ## Code Contributions
100
+
101
+ ```{todo} Please include a reference or explanation about the internals of the project.
102
+
103
+ An architecture description, design principles or at least a summary of the
104
+ main concepts will make it easy for potential contributors to get started
105
+ quickly.
106
+ ```
107
+
108
+ ### Submit an issue
109
+
110
+ Before you work on any non-trivial code contribution it's best to first create
111
+ a report in the [issue tracker] to start a discussion on the subject.
112
+ This often provides additional considerations and avoids unnecessary work.
113
+
114
+ ### Create an environment
115
+
116
+ Before you start coding, we recommend creating an isolated [virtual environment]
117
+ to avoid any problems with your installed Python packages.
118
+ This can easily be done via either [virtualenv]:
119
+
120
+ ```
121
+ virtualenv <PATH TO VENV>
122
+ source <PATH TO VENV>/bin/activate
123
+ ```
124
+
125
+ or [Miniconda]:
126
+
127
+ ```
128
+ conda create -n aenir python=3 six virtualenv pytest pytest-cov
129
+ conda activate aenir
130
+ ```
131
+
132
+ ### Clone the repository
133
+
134
+ 1. Create an user account on GitHub if you do not already have one.
135
+
136
+ 2. Fork the project [repository]: click on the *Fork* button near the top of the
137
+ page. This creates a copy of the code under your account on GitHub.
138
+
139
+ 3. Clone this copy to your local disk:
140
+
141
+ ```
142
+ git clone git@github.com:YourLogin/aenir.git
143
+ cd aenir
144
+ ```
145
+
146
+ 4. You should run:
147
+
148
+ ```
149
+ pip install -U pip setuptools -e .
150
+ ```
151
+
152
+ to be able to import the package under development in the Python REPL.
153
+
154
+ ```{todo} if you are not using pre-commit, please remove the following item:
155
+ ```
156
+
157
+ 5. Install [pre-commit]:
158
+
159
+ ```
160
+ pip install pre-commit
161
+ pre-commit install
162
+ ```
163
+
164
+ `aenir` comes with a lot of hooks configured to automatically help the
165
+ developer to check the code being written.
166
+
167
+ ### Implement your changes
168
+
169
+ 1. Create a branch to hold your changes:
170
+
171
+ ```
172
+ git checkout -b my-feature
173
+ ```
174
+
175
+ and start making changes. Never work on the main branch!
176
+
177
+ 2. Start your work on this branch. Don't forget to add [docstrings] to new
178
+ functions, modules and classes, especially if they are part of public APIs.
179
+
180
+ 3. Add yourself to the list of contributors in `AUTHORS.md`.
181
+
182
+ 4. When you’re done editing, do:
183
+
184
+ ```
185
+ git add <MODIFIED FILES>
186
+ git commit
187
+ ```
188
+
189
+ to record your changes in [git].
190
+
191
+ ```{todo} if you are not using pre-commit, please remove the following item:
192
+ ```
193
+
194
+ Please make sure to see the validation messages from [pre-commit] and fix
195
+ any eventual issues.
196
+ This should automatically use [flake8]/[black] to check/fix the code style
197
+ in a way that is compatible with the project.
198
+
199
+ :::{important}
200
+ Don't forget to add unit tests and documentation in case your
201
+ contribution adds an additional feature and is not just a bugfix.
202
+
203
+ Moreover, writing a [descriptive commit message] is highly recommended.
204
+ In case of doubt, you can check the commit history with:
205
+
206
+ ```
207
+ git log --graph --decorate --pretty=oneline --abbrev-commit --all
208
+ ```
209
+
210
+ to look for recurring communication patterns.
211
+ :::
212
+
213
+ 5. Please check that your changes don't break any unit tests with:
214
+
215
+ ```
216
+ tox
217
+ ```
218
+
219
+ (after having installed [tox] with `pip install tox` or `pipx`).
220
+
221
+ You can also use [tox] to run several other pre-configured tasks in the
222
+ repository. Try `tox -av` to see a list of the available checks.
223
+
224
+ ### Submit your contribution
225
+
226
+ 1. If everything works fine, push your local branch to the remote server with:
227
+
228
+ ```
229
+ git push -u origin my-feature
230
+ ```
231
+
232
+ 2. Go to the web page of your fork and click "Create pull request"
233
+ to send your changes for review.
234
+
235
+ Find more detailed information in [creating a PR]. You might also want to open
236
+ the PR as a draft first and mark it as ready for review after the feedbacks
237
+ from the continuous integration (CI) system or any required fixes.
238
+
239
+ ### Troubleshooting
240
+
241
+ The following tips can be used when facing problems to build or test the
242
+ package:
243
+
244
+ 1. Make sure to fetch all the tags from the upstream [repository].
245
+ The command `git describe --abbrev=0 --tags` should return the version you
246
+ are expecting. If you are trying to run CI scripts in a fork repository,
247
+ make sure to push all the tags.
248
+ You can also try to remove all the egg files or the complete egg folder, i.e.,
249
+ `.eggs`, as well as the `*.egg-info` folders in the `src` folder or
250
+ potentially in the root of your project.
251
+
252
+ 2. Sometimes [tox] misses out when new dependencies are added, especially to
253
+ `setup.cfg` and `docs/requirements.txt`. If you find any problems with
254
+ missing dependencies when running a command with [tox], try to recreate the
255
+ `tox` environment using the `-r` flag. For example, instead of:
256
+
257
+ ```
258
+ tox -e docs
259
+ ```
260
+
261
+ Try running:
262
+
263
+ ```
264
+ tox -r -e docs
265
+ ```
266
+
267
+ 3. Make sure to have a reliable [tox] installation that uses the correct
268
+ Python version (e.g., 3.7+). When in doubt you can run:
269
+
270
+ ```
271
+ tox --version
272
+ # OR
273
+ which tox
274
+ ```
275
+
276
+ If you have trouble and are seeing weird errors upon running [tox], you can
277
+ also try to create a dedicated [virtual environment] with a [tox] binary
278
+ freshly installed. For example:
279
+
280
+ ```
281
+ virtualenv .venv
282
+ source .venv/bin/activate
283
+ .venv/bin/pip install tox
284
+ .venv/bin/tox -e all
285
+ ```
286
+
287
+ 4. [Pytest can drop you] in an interactive session in the case an error occurs.
288
+ In order to do that you need to pass a `--pdb` option (for example by
289
+ running `tox -- -k <NAME OF THE FALLING TEST> --pdb`).
290
+ You can also setup breakpoints manually instead of using the `--pdb` option.
291
+
292
+ ## Maintainer tasks
293
+
294
+ ### Releases
295
+
296
+ If you are part of the group of maintainers and have correct user permissions
297
+ on [PyPI], the following steps can be used to release a new version for
298
+ `aenir`:
299
+
300
+ 1. Make sure all unit tests are successful.
301
+ 2. Tag the current commit on the main branch with a release tag, e.g., `v1.2.3`.
302
+ 3. Push the new tag to the upstream [repository],
303
+ e.g., `git push upstream v1.2.3`
304
+ 4. Clean up the `dist` and `build` folders with `tox -e clean`
305
+ (or `rm -rf dist build`)
306
+ to avoid confusion with old builds and Sphinx docs.
307
+ 5. Run `tox -e build` and check that the files in `dist` have
308
+ the correct version (no `.dirty` or [git] hash) according to the [git] tag.
309
+ Also check the sizes of the distributions, if they are too big (e.g., >
310
+ 500KB), unwanted clutter may have been accidentally included.
311
+ 6. Run `tox -e publish -- --repository pypi` and check that everything was
312
+ uploaded to [PyPI] correctly.
313
+
314
+ [^contrib1]: Even though, these resources focus on open source projects and
315
+ communities, the general ideas behind collaborating with other developers
316
+ to collectively create software are general and can be applied to all sorts
317
+ of environments, including private companies and proprietary code bases.
318
+
319
+
320
+ [black]: https://pypi.org/project/black/
321
+ [commonmark]: https://commonmark.org/
322
+ [contribution-guide.org]: http://www.contribution-guide.org/
323
+ [creating a pr]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
324
+ [descriptive commit message]: https://chris.beams.io/posts/git-commit
325
+ [docstrings]: https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
326
+ [first-contributions tutorial]: https://github.com/firstcontributions/first-contributions
327
+ [flake8]: https://flake8.pycqa.org/en/stable/
328
+ [git]: https://git-scm.com
329
+ [github web interface]: https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
330
+ [github's code editor]: https://docs.github.com/en/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
331
+ [github's fork and pull request workflow]: https://guides.github.com/activities/forking/
332
+ [guide created by freecodecamp]: https://github.com/freecodecamp/how-to-contribute-to-open-source
333
+ [miniconda]: https://docs.conda.io/en/latest/miniconda.html
334
+ [myst]: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html
335
+ [other kinds of contributions]: https://opensource.guide/how-to-contribute
336
+ [pre-commit]: https://pre-commit.com/
337
+ [pypi]: https://pypi.org/
338
+ [pyscaffold's contributor's guide]: https://pyscaffold.org/en/stable/contributing.html
339
+ [pytest can drop you]: https://docs.pytest.org/en/stable/usage.html#dropping-to-pdb-python-debugger-at-the-start-of-a-test
340
+ [python software foundation's code of conduct]: https://www.python.org/psf/conduct/
341
+ [restructuredtext]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/
342
+ [sphinx]: https://www.sphinx-doc.org/en/master/
343
+ [tox]: https://tox.readthedocs.io/en/stable/
344
+ [virtual environment]: https://realpython.com/python-virtual-environments-a-primer/
345
+ [virtualenv]: https://virtualenv.pypa.io/en/stable/
346
+
347
+
348
+ [repository]: https://github.com/gchang12/aenir
349
+ [issue tracker]: https://github.com/gchang12/aenir/issues
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 gchang12
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ include src/aenir/static/*
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: aenir
3
+ Version: 0.0.post1.dev1242
4
+ Summary: Stat calculator for Fire Emblem
5
+ Home-page: https://github.com/gchang12/aenir/
6
+ Author: gchang12
7
+ Author-email: gc8@hawaii.edu
8
+ License: MIT
9
+ Project-URL: Source, https://github.com/gchang12/aenir/
10
+ Project-URL: Download, https://pypi.org/project/aenir/
11
+ Platform: any
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Programming Language :: Python
14
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
15
+ License-File: LICENSE.txt
16
+ Requires-Dist: importlib-metadata; python_version < "3.8"
17
+ Provides-Extra: testing
18
+ Requires-Dist: setuptools; extra == "testing"
19
+ Requires-Dist: pytest; extra == "testing"
20
+ Requires-Dist: pytest-cov; extra == "testing"
21
+ Dynamic: license-file
22
+
23
+ <!-- These are examples of badges you might want to add to your README:
24
+ please update the URLs accordingly
25
+
26
+ [![Built Status](https://api.cirrus-ci.com/github/<USER>/aenir.svg?branch=main)](https://cirrus-ci.com/github/<USER>/aenir)
27
+ [![ReadTheDocs](https://readthedocs.org/projects/aenir/badge/?version=latest)](https://aenir.readthedocs.io/en/stable/)
28
+ [![Coveralls](https://img.shields.io/coveralls/github/<USER>/aenir/main.svg)](https://coveralls.io/r/<USER>/aenir)
29
+ [![PyPI-Server](https://img.shields.io/pypi/v/aenir.svg)](https://pypi.org/project/aenir/)
30
+ [![Conda-Forge](https://img.shields.io/conda/vn/conda-forge/aenir.svg)](https://anaconda.org/conda-forge/aenir)
31
+ [![Monthly Downloads](https://pepy.tech/badge/aenir/month)](https://pepy.tech/project/aenir)
32
+ [![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter)](https://twitter.com/aenir)
33
+ -->
34
+
35
+ [![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
36
+
37
+ ![Logo](./logo.png)
38
+
39
+ > This module lets you perform stat calculations for Fire Emblem units.
40
+
41
+ With this module, you can:
42
+ - Create a virtual copy of a unit and their stats.
43
+ - Level up that unit.
44
+ - Promote that unit.
45
+ - Compare one unit to another.
46
+ - And much more!
47
+
48
+ ## Installation
49
+
50
+ To start, install `aenir`.
51
+ ```bash
52
+ pip install aenir
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ Let's begin by starting up an interactive Python shell.
58
+ We will start by importing the shortcut function `get_morph`.
59
+ ```python
60
+ from aenir import get_morph
61
+ ```
62
+
63
+ To create a virtual copy of a unit (i.e. a 'Morph'), bear in mind the following:
64
+
65
+ 1. The name of the unit; this should have the [SerenesForest.Net](https://serenesforest.net/) spelling.
66
+ 2. The number of the game the unit is from.
67
+
68
+ Let's say we want to get Roy's stats. Note that **Roy** is from FE**6**: The Sword of Seals.
69
+
70
+ ```python
71
+ roy = get_morph(6, "Roy")
72
+ print(roy)
73
+ ```
74
+
75
+ As you can see, these stats suck. Let's fix that; let's level him up to level twenty.
76
+
77
+ ```python
78
+ num_levels = 20 - roy.current_lv
79
+ roy.level_up(num_levels)
80
+ print(roy)
81
+ ```
82
+
83
+ That's better. But it's still not enough. Let's promote him.
84
+
85
+ ```python
86
+ roy.promote()
87
+ ```
88
+
89
+ For the fun of it, let's max him out.
90
+
91
+ ```python
92
+ num_levels = 19 # because he starts out at level one again.
93
+ roy.level_up(num_levels)
94
+ print(roy)
95
+ ```
96
+
97
+ Note that when initializing certain characters, like Rutger, extra initialization parameters will be needed.
98
+
99
+ ```python
100
+ rutger = get_morph(6, "Rutger", hard_mode=True)
101
+ larcei = get_morph(4, "Lakche", father="Lex")
102
+ lyn = get_morph(7, "Lyn", lyn_mode=True)
103
+ ```
104
+
105
+ Compare characters by using the greater-than operator.
106
+
107
+ ```python
108
+ roy > lyn
109
+ print(sum(roy > lyn))
110
+ ```
111
+
112
+ ## Limitations
113
+
114
+ Currently, this calculator works only for characters from:
115
+
116
+ 4. Genealogy of the Holy War
117
+ 5. Thracia 776
118
+ 6. Sword of Seals
119
+ 7. Blazing Blade
120
+ 8. The Sacred Stones
121
+ 9. Path of Radiance
122
+
123
+
124
+ # COMING SOON!
125
+
126
+ Combat simulation
127
+
128
+ <!-- pyscaffold-notes -->
129
+
130
+ ## Note
131
+
132
+ This project has been set up using PyScaffold 4.6. For details and usage
133
+ information on PyScaffold see https://pyscaffold.org/.