Giter VIP home page Giter VIP logo

datoso's Introduction

Datoso

Datoso

Datoso is a WIP Python command line tool to download and organize your Dat Roms. As today the tool supports dat-omatic, redump, and translated-english dats. It merges all the dats in a tree folder structure thought to use with Emulators rather than dats. The dat file format must be compatible with ROMVault.

Installation

Datoso requires python 3.10+.

Use pip (recommended to use a virtual environment):

# Optional (create a virtual environment)
python3 -m venv venv
source venv/bin/activate

# Install datoso base (doesn't do much without plugins)
pip install datoso

# Install datoso with all official plugins
pip install datoso[all]

# Install datoso with only one of the plugins
pip install datoso[fbneo]
pip install datoso[nointro]
pip install datoso[pleasuredome]
pip install datoso[redump]
pip install datoso[translatedenglish]

# Install datoso plugins after installing datoso
pip install datoso_seed_fbneo
pip install datoso_seed_nointro
pip install datoso_seed_pleasuredome
pip install datoso_seed_redump
pip install datoso_seed_translatedenglish

Usage

# Show help
$ datoso --help

usage: datoso [-h] [-v] {config,doctor,dat,seed,import,deduper,all} ...

Update dats from different sources.

positional arguments:
  {config,doctor,dat,seed,import,deduper,base,fbneo,nointro,pleasuredome,private,redump,translatedenglish,all}
                        sub-command help
    config              Show configuration
    doctor              Doctor installed seeds
    dat                 Changes configuration in current dats
    seed                Seed admin commands
    import              Import dats from existing romvault
    deduper             Deduplicate dats, removes duplicates from input dat existing in parent dat
    all                 Update seed all

options:
  -h, --help            show this help message and exit
  -v, --version         show version



# Seed commands
$ datoso seed [list,details]

# Seed commands
$ datoso {<seed> | all} {--fetch | --process} [--filter FILTER]
#e.g.
$ datoso redump --fetch                    # Downloads all dats from redump
$ datoso redump --process --filter IBM     # Process all dats downloaded in the step before that has IBM in its name

# Doctor
$ datoso doctor [seed]        # Validates if all requirements for all seeds are OK

# Deduper
$ datoso deduper -input <input_dat> -p <parent_dat> [-o <output_dat>]   # If output dat is not especified, input dat will be overwritten.

optional arguments:
   -h, --help            show the help message and exit, feel free to append to other commands
   -v, --verbose         verbose output
   -q, --quiet           quiet output

Developing a seed

Check datoso_seed_base

Posible Issues

Be careful when updating dats from datomatic, sometimes they put a captcha, and you may be banned if the captcha fails, captcha support is OTW.

TODO (without priority)

USEFUL DEVELOPMENT COMMANDS

# Find folders with more than one dat file:
$ find . -type f -iname '*.dat' -printf '%h\n'|sort|uniq -cd

# Find and delete empty folders:
$ find . -type d -empty -print -delete

# Pylint
$ pylint src --errors-only
$ pylint src --disable=all --enable=missing-function-docstring

# Find duplicate names different case
$ find . | sort -f | uniq -i -d

WISHLIST (without priority)

  • Dat structure for ClrMamePro or another dat manager.
  • Web interface
  • Download from central repositories (an S3 or something like that to prevent overload main sites)
    • Lambda to download dats and upload to S3
    • Downloading from S3
  • Auto-Import MIA Lists (for redump)
    • Add [MIA] to dat roms
  • Remove MIA from dats
  • .cue Generator

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

MIT

datoso's People

Contributors

laromicas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.