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

Allow "from airtable import Airtable" #24

Merged
merged 3 commits into from
Jan 23, 2019
Merged

Allow "from airtable import Airtable" #24

merged 3 commits into from
Jan 23, 2019

Conversation

h
Copy link
Contributor

@h h commented Dec 30, 2018

A number of users of this library have been confused that they have to do:
from airtable.airtable import Airtable

The less surprising (and more python-idiomatic) way to import would be:
from airtable import Airtable

This pull request enables that.

A number of users of this library have been confused that they have to do:
    from airtable.airtable import Airtable

The less surprising (and more python-idiomatic) way to import would be:
    from airtable import Airtable

This pull request enables that.
@h h mentioned this pull request Dec 30, 2018
Non-relative import causes import error due to naming conflict with the top-level module.
@pcorpet
Copy link
Owner

pcorpet commented Jan 23, 2019

Thanks a lot. I like it.

@pcorpet pcorpet merged commit afb50d7 into pcorpet:master Jan 23, 2019
@ladakgit
Copy link

ladakgit commented Nov 9, 2020

I am not sure why from airtable.airtable import Airtable is not working for me, says ModuleNotFoundError: No module named 'airtable'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants