Git Product home page Git Product logo

gfycat's People

Contributors

nim901 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gfycat's Issues

Package formatting

Quick python suggestion.

Currently, you gotta do

from gfycat.gfycat import gfycat
upload = gfycat()

Quick suggestion, first off, maybe titlecase the class (so it's Gfycat)
Or maybe even name it Uploader or GfyUploader

Then, in init.py, you should do from gfycat import Uploader

Now, we can do

from gfycat import Uploader
upload = Uploader()

or

import gfycat
upload = gfycat.Uploader()

Otherwise, great package! Saved me a lot of time, and works flawlessly.
Cheers.

Same name for module and class

When I import the module as usual using ipython2.7 on linux I get the following error:

import gfycat
gfycat.gfycat()

AttributeError: 'module' object has no attribute 'gfycat'

I think this is because python confuses the module namespace with the class namespace.
might be relevant

The solution for me was

from gfycat import gfycat
g = gfycat
upload = g.gfycat()

Am I doing something wrong here? Because this should clearly not be the way to access a module.
Shouldn't this class be renamed to avoid any confusion by python or the people using it?

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.