Git Product home page Git Product logo

mmpy's Issues

Generators in charts don't let me iterate more than once

Generator expressions are cool and all, but I think they're out of place in the Chart.<chart_type> attribute for a couple reasons.

  1. They are one-shot. For example:
> c = mmpy.Chart('bb789492225c4c4da2e15f617acc9982')
> list(c.artist)
[(1, None, <mmpy.artist.Artist at 0x106dd6f50>),
 ...]
> list(c.artist)
[]
  1. They are based on the volatile self.response attribute, which, if it (eventually) follows mmpy.Artist()'s patterns, changes value with each API call.

My personal opinion would be to use a simple list comprehension in the place of the generator expression, so that at least the c.artist attribute has stable behaviour, but I don't know where y'all are headed with this.

Fails to install version 0.1 from pypi

pip install mmpy gives the following error

Downloading/unpacking mmpy
  Downloading mmpy-0.1.tar.gz
  Running setup.py egg_info for package mmpy
    Traceback (most recent call last):
      File "<string>", line 13, in <module>
      File "/home/matt/build/mmpy/setup.py", line 9, in <module>
        long_description=open('README.md').read(),
    IOError: [Errno 2] No such file or directory: 'README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 13, in <module>

  File "/home/matt/build/mmpy/setup.py", line 9, in <module>

    long_description=open('README.md').read(),

IOError: [Errno 2] No such file or directory: 'README.md'

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in ./pip-log.txt

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.