This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4: Gather CharmStore endpoint and timeout from environment
This change allows a user to set the environment variables CS_API_URL and CS_API_TIMEOUT to repectively set the Charm Store endpoint URL and how long to wait before a Charm Store query times out. This could also be a step towards removing the DEFAULT_CS_API_URL from libcharmstore. * Increment version
- Loading branch information
1 parent
44143bc
commit a3d71ca
Showing
4 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
# CharmStore Python Library | ||
|
||
The environment variables CS\_API\_URL and CS\_API\_TIMEOUT can be set to | ||
repectively set the Charm Store endpoint URL and how long to wait before a | ||
Charm Store query times out. | ||
|
||
```bash | ||
export CS_API_URL=https://api.jujucharms.com/v4 | ||
export CS_API_TIMEOUT=200 | ||
``` | ||
|
||
```python | ||
from charmstore import CharmStore, Charm, Bundle | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters