Potty-Snake is a Java library that simplifies the creation, manipulation, and management of YAML files. Leveraging the power of SnakeYAML, it provides an accessible and efficient way to handle YAML data for applications of any scale.
- Easy to Use: Simple API for reading and writing YAML.
- Efficient: Optimized for performance with large files.
- Flexible: Supports complex YAML structures, including nested objects.
- Reliable: Built on the robust SnakeYAML engine.
- Java 17
- Maven (Optional)
Add the following dependency to your pom.xml
for Maven:
<dependency>
<groupId>ir.mehran1022.api</groupId>
<artifactId>potty-snake</artifactId>
<version>1.3</version>
</dependency>
Or just copy & paste the PottySnake.java
class and install the dependencies.
Create an instance of PottySnake and use it to load, manipulate, and save YAML data:
PottySnake pottySnake = new PottySnake("path/to/file.yaml", false); // Non thread-safe
// Example utility method
Object object = pottySnake.getEntry(myKey);
Potty-Snake is released under the MIT License. See the bundled LICENSE file for details.
- SnakeYAML, for the powerful YAML engine.
- All contributors who help maintain and improve this project.
Potty-Snake is maintained with β₯.