Installation & Settings¶
$ pip install basket-client
- URL to basket server, e.g.
The URL must not end with
/. Basket-client will add
- The API Key granted to you by the mozilla.org developers so that you can
lookup_usermethod with an email address.
- The number of seconds basket client should wait before giving up on the request.Default:
If you’re using Django you can simply add these settings to your
settings.py file. Otherwise basket-client will look for these
values in an environment variable of the same name.
Tests depend on hatch for package management. To install hatch:
$ pipx install hatch
Once installed you can run the tests in all supported Python environments with:
$ make test # equiv to `hatch run test:cov`
To run the tests with specific Python version you can specify this with hatch:
$ hatch run +py=3.10 test:cov