Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP-8 #12

Closed
superbobry opened this issue Oct 26, 2013 · 1 comment
Closed

PEP-8 #12

superbobry opened this issue Oct 26, 2013 · 1 comment

Comments

@superbobry
Copy link

TwitterSearch is great, but do you plan to provide a more PEP-8-ish API?

For instance, here's an example from the README:

from twitter_search import *

tso = TwitterSearchOrder() # create a TwitterSearchOrder object
tso.set_kewords(['Guttenberg', 'Doktorarbeit']) 
tso.set_language('de')
tso.set_count(7) 
tso.set_include_intities(False) 

try:
    ts = TwitterSearch(
        consumer_key = 'aaabbb',
        consumer_secret = 'cccddd',
        access_token = '111222',
        access_token_secret = '333444'
     )

    for tweet in ts.iter_search(tso):
        # ...
except TwitterSearchException as e:
    print(e)
@ckoepp
Copy link
Owner

ckoepp commented Oct 27, 2013

You're right - even if I don't like the scheme myself. But I guess PEP-8 is getting more important as TwitterSearch became more used than I thought it would be.

So I'll switch to PEP-8 in the next version.

ckoepp added a commit that referenced this issue Dec 28, 2013
ckoepp added a commit that referenced this issue Dec 28, 2013
@ckoepp ckoepp closed this as completed Dec 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants