The beerxml python package is a powerful tool designed to streamline the process of working with BeerXML files, ensuring that specific beer recipes adhere to the BeerXML standard. BeerXML is a widely adopted XML-based standard for representing brewing recipes, allowing brewers to share and exchange their recipes seamlessly.
Project description
Your Project Name
Description
The beerxml python package is a powerful tool designed to streamline the process of working with BeerXML files, ensuring that specific beer recipes adhere to the BeerXML standard. BeerXML is a widely adopted XML-based standard for representing brewing recipes, allowing brewers to share and exchange their recipes seamlessly.
Installation
To install your package, use the following command:
pip install beerxml
Usage
Import the BeerxmlParser
class and inject the file content into the class like in the following example:
from beerxml import BeerxmlParser
# Example usage
parser: BeerxmlParser = BeerxmlParser()
with open("path/to/xml.file", "r") as file_content:
recipe = parser.parse(file_content.read())
print(recipe.name)
print(recipe.hops)
print(recipe.fermentables)
print(recipe.yeasts)
Contributing
We welcome contributions from the community! If you would like to contribute to this project, please follow these guidelines:
Reporting Issues
If you encounter any issues or have suggestions, please open an issue on our GitHub repository.
Pull Requests
- Fork the repository and create a new branch for your contribution.
- Write clear and concise commit messages.
- Include unit tests for your changes
- Submit a pull request, clearly describing the changes you've made and providing any necessary context.
Linting and Code Style
We use the following linters to maintain code quality:
Before submitting a pull request, ensure that your code passes these checks.
Unit Testing
All contributions must be accompanied by unit tests using pytest. Test coverage is crucial to ensure the reliability of the codebase.
To run tests locally:
pytest .
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
Built Distribution
File details
Details for the file beerxml-0.0.2.tar.gz
.
File metadata
- Download URL: beerxml-0.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64ea8f28f5f67c78885b8357343ce4869b533ac143d14433ef466f82ec0db12 |
|
MD5 | d34e977b0729fb0f24ad69f7b234c2f2 |
|
BLAKE2b-256 | e82023f511ce3de2f78ee389d138e6bb6ff15498c8b63d6d32fae4016fd7a4a5 |
File details
Details for the file beerxml-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: beerxml-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769b280b509cd7d7251434f41180f03c7a5b7dc84a46a2f16e0cc4b0c9b61e33 |
|
MD5 | 29f95ff56901224e26c73d7d209279a5 |
|
BLAKE2b-256 | d18215657df350bf3b29d59458a7cf6c3d07c1b748e144bd1cccae97f39d0b3c |