Coder Social home page Coder Social logo

nebulino / scrobblenaut Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 8.0 220 KB

A deadly simple LastFM API Wrapper for Dart. So deadly simple that it's gonna hit the mark.

Home Page: https://pub.dev/packages/scrobblenaut

License: Other

Dart 99.70% PowerShell 0.16% Shell 0.14%
lastfm dart lastfm-api last-fm wrapper fm-api

scrobblenaut's Introduction

Scrobblenaut

Just a Last.FM API Wrapper for Dart. A package to interact with the official

Last.FM API.

Dart Version Build Status Last.FM Nebulino

Disclaimer

I'm doing it just for fun, so... use at your own risk.

I hope it will become something great.

^-^

Usage

First build the .g files for Serializable (if you clone the repo):

pub run build_runner build

A simple usage example:

import 'package:scrobblenaut/scrobblenaut.dart';

// A simple example...
// For more, check the example folder.
void main() async {
  final lastFMAuth = await LastFM.noAuth(apiKey: APIValues.API);
  final scrobblenaut = Scrobblenaut(lastFM: lastFMAuth);
  
  // Start using the Wrapper...
}

Get Scrobblenaut

Add Scrobblenaut dependency on pubspec.yaml:

From GitHub (for example: branch-name >> dev-build):

dependencies:
  scrobblenaut:
    git: https://github.com/Nebulino/Scrobblenaut.git
      ref: branch-name

From pub.dev:

dependencies:
  scrobblenaut: ^version-number

Features and bugs

Status

All the methods are available. Needs more time to check for problems caused by a bad information management from the API side. For example:

  • Tracks duration information taken from an album like method is different from a Track duration taken from a track info query.

  • Some variables can have strange content such as FIXME on some Track duration.

  • Many more. For now with my tests, this is the best I can handle. I just need more track and usage of my package to track different type of errors that can occurs.

Future of the package after all methods implemented

It's still a long way. I have some ideas, and I'm going to continue to support it, just stay tuned.

For the documentation

For now, You have to download the repo and run dartdoc on the console, on the root of the package. When I upload this package on pub.dev you can use the documentation from there directly.

There's 2 type of usage:

  • with authentication;
  • without authentication.

Please file feature requests and bugs at the issue tracker.

Copyright © 2020 Nebulino

scrobblenaut's People

Contributors

nebulino avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

scrobblenaut's Issues

Change XML dependency?

For avoiding conflicts.

Scrobblenaut uses ^4.1.0

Main Conflicts:

  • Flutter Stable: (xml ^2.6.1)

For now use Flutter Master.

Manage empty response.

When all input are filled but still LastFM wants to whine... and a {} is returned.
For example:

scrobblenaut.track.getTags(track: 'Tomoyo', artist: 'RADWIMPS', user: 'nebulino');

RADWIMPS hasn't created any songs with that name.

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.