-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from dbatten5/load-sources
add `load_sources` support
- Loading branch information
Showing
6 changed files
with
93 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
This is the main entrypoint class. | ||
|
||
# Usage | ||
|
||
First instantiate the class with a `title` property: | ||
|
||
```python | ||
from phylm import Phylm | ||
|
||
p = Phylm(title="The Matrix") | ||
``` | ||
|
||
Next load a source through either `load_sources` or `load_source`: | ||
|
||
```python | ||
p.load_sources(["imdb", "rt"]) | ||
p.load_source("mtc") | ||
``` | ||
|
||
Now the source will be available through a property of the same name: | ||
|
||
```python | ||
>>> p.imdb | ||
<phylm.sources.imdb.Imdb object at 0x108a94810> | ||
``` | ||
|
||
See the docs for a source for a full list of the available data points. | ||
|
||
# Reference | ||
|
||
::: phylm.Phylm | ||
rendering: | ||
show_source: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "phylm" | ||
version = "4.0.0" | ||
version = "4.0.1" | ||
description = "Phylm" | ||
authors = ["Dom Batten <[email protected]>"] | ||
license = "MIT" | ||
|
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