semvec/pypi-packages huggingface dataset:
mania2json 0.1.1
A Python library for parsing osu!mania 4k beatmap files
Requires Python: >=3.8
Keywords: osu!, osu, mania, 4k, beatmap, parser, rhythm-game

# mania2json

A Python library for parsing osu!mania 4k beatmap files and extracting relevant information.

## Features

- Parse osu!mania beatmap (.osu) files
- Extract metadata, difficulty settings, hit objects, and timing points
- JSON exports

## Installation

```bash
pip install mania2json
```

## Quick Start

```python
from mania2json import mania_file_parser, mania_mapset_parser


# example use with a single file
maniap = mania_file_parser()
maniap.light_parse(file_path="xi - .357 Magnum (Akali) [4K Hyper].osu")
print(maniap.__dict__)


# example use with a songs directory
dir = "C:\\Users\\phile\\AppData\\Local\\osu!\\Songs\\" 
parser = mania_mapset_parser()  
mapset_data = parser.get_mania_mapsets_from_folder(directory=dir, max_workers=1)
print(f"Found {len(mapset_data)} mania mapsets in {dir} ({sum(len(maps) for maps in mapset_data.values())} maps)")


# save all mapsets to a single JSON file
parser.save_mapsets_to_json(mapset_data, "all_mapsets.json")


# ...or save individual mapsets in multiple files
for mapset_id, mapset_content in mapset_data.items():
    parser.save_mapsets_to_json({mapset_id: mapset_content}, f"songs\\{mapset_id}.json")
```

## API Reference

### mania_file_parser

- `full_parse(file_path)`: Parse all sections of a beatmap file
- `light_parse(file_path)`: Parse metadata-related sections only
- `is_4k_map()`: Check if the beatmap is a 4K mania map

### mania_mapset_parser

- `get_mania_mapsets_from_folder(directory, max_workers=8)`: Scan directory for mania mapsets
- `save_mapsets_to_json(data, file_path)`: Export parsed data to JSON

## Requirements

- Python 3.8+

## License

MIT License
django-afip 13.2.2
AFIP integration for django
Requires Python: >=3.9
Keywords: argentina, afip, wsdl

django-afip
===========

What's this?
------------

AFIP is Argentina's tax collection agency. For emitting invoices, taxpayers are
required to inform AFIP of each invoice by using a dedicated SOAP-like web
service for that.

**django-afip** is a Django application implementing the necessary bits for
Django-based applications to both store and comunícate invoicing information.

Features
--------

* Validate invoices and other receipt types with AFIP's WSFE service.
* Generate valid PDF files for those receipts to send to clients.

Documentation
-------------

The full documentation is available at https://django-afip.readthedocs.io/

It is also possible to build the documentation from source using:

.. code-block:: sh

    tox -e docs

Changelog
---------

The changelog is included with the rest of the documentation:
https://django-afip.readthedocs.io/en/stable/changelog.html

Donate
------

While some of the work done here is done for clients, much of it is done in my
free time. If you appreciate the work done here, please consider donating_.

.. _donating: https://whynothugo.nl/sponsor/

Licence
-------

This software is distributed under the ISC licence. See LICENCE for details.

Copyright (c) 2015-2023 Hugo Osvaldo Barrera <hugo@whynothugo.nl>