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

Using this library #1

Open
johentsch opened this issue Jan 11, 2021 · 1 comment
Open

Using this library #1

johentsch opened this issue Jan 11, 2021 · 1 comment

Comments

@johentsch
Copy link

Hi there, interesting project there. However, I don't see how to get it working.

Looking at your code I tried:

import imslp
cl = imslp.client.ImslpClient('User', 'PW')

but get the warning module 'imslp' has no attribute 'client'. Is it that __init__.py is missing an import client or that I'm just missing the documentation to see how this library works?

@TAThor
Copy link

TAThor commented Jun 20, 2021

To use the search functions, you must import imslp.client, and then define a ImslpClient() object.

For example,

from imslp import client

r = client.ImslpClient()

r.search_works(composer = 'Mozart')

collects all works by Mozart.

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

No branches or pull requests

2 participants