A Python library for reading/writing Minecraft's various save formats.
Project description
Amulet Core
A Python 3 library to read and write data from Minecraft's various save formats.
This library provides the main world editing functionality for Amulet Map Editor
If you are looking for the actual editor it can be found at Amulet Map Editor
Documentation
Our online documentation can be found here: https://amulet-core.readthedocs.io
Installing
- Install Python 3.7
- We recommend setting up a python virtual environment so you don't run into issues with dependency conflicts.
- run
pip install amulet-core
to install the library and all its dependencies.
Dependencies
This library uses a number of other libraries. These will be automatically installed when running the command above.
- Numpy
- Amulet_NBT
- PyMCTranslate
Contributing
For Development
Download the code to your computer, install python and run the following command from the root directory.
run pip install -e .[dev]
This command will install the library in development mode with the libraries required for development.
- Black (Required for formatting)
- Must be run before pushing a Pull Request
For information about contributing to this project, please see the contribution section below
Code Formatting
For code formatting, we use the formatting utility black.
To run it, run the following command from your favorite terminal after installing: black amulet tests
In order for your pull request to be accepted, this command must be run to format every file.
Building the Documentation
To build the documentation locally, run the following command: make html
and then navigate to the
generated directory docs_build/html
in your favorite web browser
Branch Naming
Branches should be created when a certain bug or feature may take multiple attempts to fix. Naming them should follow the following convention (even for forked repositories when a pull request is being made):
- For features, use:
impl-<feature name>
- For bug fixes, use:
bug-<bug tracker ID>
- For improvements/rewrites, use:
improv-<feature name>
- For prototyping, use:
proto-<feature name>
Pull Requests
We ask that submitted Pull Requests give moderately detailed notes about the changes and explain any changes that were made to the program outside of those directly related to the feature/bug-fix. Make sure to run all tests and formatting otherwise we cannot accept your pull request.
Note: We will also re-run all tests before reviewing, this is to mitigate additional changes/commits needed to pass all tests.
Once a Pull Request is submitted, we will mark the request for review, once that is done, we will review the changes and provide any notes/things to change. Once all additional changes have been made, we will merge the request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for amulet_core-2.0a7-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a8f5168d4d1463300a10b036fcea8210259e84fb08ddb6cbb8e32e4881860f |
|
MD5 | 5098ae31aaee25acfb55b080c9aeaefb |
|
BLAKE2b-256 | a4cb20364e55f9970d2fa7a8ed00b5d4bd9cb6c143a0f27c29b89fdcadaf3e38 |
Hashes for amulet_core-2.0a7-cp312-cp312-macosx_10_13_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250638b28f653409355af652cbe979b0f5e2f69cc168f135230f36d9905940a4 |
|
MD5 | cd549633e752159bdcc67f7d53d122e3 |
|
BLAKE2b-256 | cb5b0195f68000d2e11515e7448bd0a6c99181ddc4547834c34d951324ea98bc |
Hashes for amulet_core-2.0a7-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d4f177beb37242acb2c37c580b27e848a74372144c86e40a0326a96333a7f5f |
|
MD5 | 38c3ec2fcc152179bc8c86e9116b4f61 |
|
BLAKE2b-256 | 73f86a5e8eb4f46ce4b205bdcab0972e1d1a2856246566f8b5ffb8a64925cce6 |
Hashes for amulet_core-2.0a7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccf501681f82dcc12d01dfa9b9aa14d44da60edc9350230c8528fcddd430a6fb |
|
MD5 | 10f061dc6f00b84d9c6558bfa502d614 |
|
BLAKE2b-256 | ca72b884b79f913450451701b651b433e5a91a9c9ff6c37a0caae7949e8dcfb0 |