No project description provided
Project description
Certainly! Here's a comprehensive README.md
for your BdsPackManager
project:
# BdsPackManager
**BdsPackManager** is a command-line tool designed for managing resource and behavior packs on a Minecraft Bedrock Dedicated Server (BDS). It allows you to easily add, validate, and manage packs, ensuring that your server is always up-to-date with the latest content.
## Features
- **Add Packs**: Supports adding `.mcpack`, `.mcaddon`, and directories containing valid `manifest.json` files.
- **Automatic Unzipping**: Automatically extracts and processes `.mcpack` and `.mcaddon` files.
- **Validation**: Ensures consistency between the packs listed in your server's configuration files and the actual content in the `resource_packs` and `behavior_packs` directories.
- **Configurable**: Specify the server directory using command-line arguments, environment variables, or `.env` files.
- **Interactive**: Prompts before overwriting existing packs to prevent accidental data loss.
## Installation
1. **Install via pip**:
```bash
pip install bdspackmanager
```
2. **Set up your environment**:
- Optionally, create a `.env` file in the root directory to store your BDS directory path:
```
BDS_DIRECTORY=/path/to/your/bedrock_server
```
## Usage
### Command-line Arguments
```bash
python -m bds_pack_manager.main [OPTIONS] PACKS...
Options:
PACKS...
: One or more paths to.mcpack
,.mcaddon
, or directories containing a validmanifest.json
.--bds-dir
: Specify the path to the Bedrock Dedicated Server directory (overrides.env
and environment variable).--validate
: Validate and rescan JSON files for consistency with the actual content in theresource_packs
andbehavior_packs
directories.
Example Usage
-
Adding a Pack:
python -m bds_pack_manager.main /path/to/your_pack.mcpack
-
Adding Multiple Packs:
python -m bds_pack_manager.main /path/to/your_pack_1.mcpack /path/to/your_pack_2.mcaddon /path/to/pack_directory
-
Validating Pack Consistency:
python -m bds_pack_manager.main --validate
Directory Structure
.
├── bds_pack_manager
│ ├── __init__.py
│ ├── main.py
│ ├── pack_handler.py
│ ├── manifest_parser.py
│ ├── json_updater.py
│ ├── utils.py
├── tests
│ ├── test_pack_handler.py
│ ├── test_manifest_parser.py
│ ├── test_json_updater.py
│ ├── test_utils.py
├── .env
├── requirements.txt
└── README.md
Development
Running Tests
To run tests, use pytest
:
pytest
Contributing
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Notes
- Ensure that your Bedrock Dedicated Server is properly configured before using this tool.
- Handle with care: Always back up your server before making significant changes.
### Key Points Covered:
- **Project Overview**: Explains what the tool is and its key features.
- **Installation**: Simple steps to get the tool set up and running.
- **Usage**: Detailed instructions on how to use the tool, including examples.
- **Directory Structure**: Provides insight into the project’s organization.
- **Development**: Instructions for running tests and contributing.
- **License**: Indicates that the project is under the MIT License.
You can modify this `README.md` to better fit your project’s specific needs and add any additional details that might be relevant to users or contributors.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bdspackmanager-0.1.3.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for bdspackmanager-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b59b3a844978074cf43beb20947df170c7727d8db0ee0e9bc0ee5e402a4acd |
|
MD5 | 68ab23d9fa9583a1939dbd81b8d61c22 |
|
BLAKE2b-256 | 2cbbf7df82cc1591a9cd232860df15c44079fc6738917353e02326199bee689c |