Giter Site home page Giter Site logo

th3-z / malgo Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 96 KB

:floppy_disk: MyAnimeList XML to SQLite migration utility and Go library — command line tool also available

Home Page: https://github.com/th3-z/malgo

License: MIT License

Go 99.13% Makefile 0.87%
myanimelist golang library migration sql sqlite3

malgo's Introduction

Malgo

Build Status Go Report Card GitHub license Codecov

A MyAnimeList SQL migration utility and Go library.

Cli exporter usage

  • Export your list from MyAnimeList
  • Run malgo -o anime.sqlite yourAnimeList.xml
  • Receieve SQLite database ./anime.sqlite

Databases

Malgo has so far been tested with the following databases. Let me know if you have success with any of the other database drivers.

  • Sqlite3

Golang examples

The golang module provides structs and functions for reading and editing the migrated database.

Migrate directly from an exported anime list and retrieve series.

malgo.storage.CreateSchema(someDb)
malgo.MigrateFile(someDb, "sample.xml")

user := malgo.models.SearchUser(someDb, "th3-z")
for _, review := range user.Reviews {
    print(review.Series.Name)
    print("\n")
}

Datatables example

A more complex example can be seen on my public website's repo. It produces the following table.

Image of example usage

Building

Run make build to create a release for the CLI tool in ./bin.

Requirements

  • Golang 1.13.x
  • make
  • gcc

malgo's People

Contributors

th3-z avatar

Stargazers

 avatar  avatar

Watchers

 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.