Updated subpackages to include __all__ and modified some docstrings

This commit is contained in:
Nanda Scott 2018-10-28 01:48:20 -04:00
parent 09923a52b2
commit 8d977cea01
14 changed files with 50 additions and 9 deletions

View File

@ -1 +1,3 @@
from .bulk_data import BulkData from .bulk_data import BulkData
__all__ = ['BulkData']

View File

@ -7,3 +7,15 @@ from .named import Named
from .randomcard import Random from .randomcard import Random
from .search import Search from .search import Search
from .arena_id import ArenaId from .arena_id import ArenaId
__all__ = [
'Autocomplete',
'Collector',
'Id',
'Mtgo',
'Multiverse',
'Named',
'Random',
'Search',
'ArenaId'
]

View File

@ -19,7 +19,7 @@ class Collector(CardsObject):
Exception: If the object returned is an error. Exception: If the object returned is an error.
Examples: Examples:
>>> card = scrython.cards.Collector(code='exo', collector_number='96') >>> card = scrython.cards.Collector(code="exo", collector_number="96")
>>> card.id() >>> card.id()
""" """
def __init__(self, **kwargs): def __init__(self, **kwargs):

View File

@ -11,3 +11,19 @@ from .toughnesses import Toughnesses
from .watermarks import Watermarks from .watermarks import Watermarks
from .word_bank import WordBank from .word_bank import WordBank
from .artist_names import ArtistNames from .artist_names import ArtistNames
__all__ = [
'ArtifactTypes',
'CardNames',
'CreatureTypes',
'EnchantmentTypes',
'LandTypes',
'Loyalties',
'PlaneswalkerTypes',
'Powers',
'SpellTypes',
'Toughnesses',
'Watermarks',
'WordBank',
'ArtistNames'
]

View File

@ -2,3 +2,10 @@ from .mtgo import Mtgo
from .multiverse_id import Multiverse from .multiverse_id import Multiverse
from .scryfall_id import Id from .scryfall_id import Id
from .set_code import Code from .set_code import Code
__all__ = [
'Mtgo',
'Multiverse',
'Id',
'Code'
]

View File

@ -23,7 +23,7 @@ class Arena(RulingsObject):
N/A N/A
Examples: Examples:
>>> rule = scrython.rulings.Arena(id='66975') >>> rule = scrython.rulings.Arena(id="66975")
>>> rule.data_length() >>> rule.data_length()
""" """
def __init__(self, **kwargs): def __init__(self, **kwargs):

View File

@ -23,7 +23,7 @@ class Mtgo(RulingsObject):
N/A N/A
Examples: Examples:
>>> rule = scrython.rulings.Mtgo(id='9611') >>> rule = scrython.rulings.Mtgo(id="9611")
>>> rule.data_length() >>> rule.data_length()
""" """
def __init__(self, **kwargs): def __init__(self, **kwargs):

View File

@ -23,7 +23,7 @@ class Multiverse(RulingsObject):
N/A N/A
Examples: Examples:
>>> rule = scrython.rulings.Id(id='4301') >>> rule = scrython.rulings.Id(id="4301")
>>> rule.data_length() >>> rule.data_length()
""" """
def __init__(self, **kwargs): def __init__(self, **kwargs):

View File

@ -23,7 +23,7 @@ class Id(RulingsObject):
N/A N/A
Examples: Examples:
>>> rule = scrython.rulings.Id(id='5976c352-ac49-4e0d-a4c0-ec9b6b78db9c') >>> rule = scrython.rulings.Id(id="5976c352-ac49-4e0d-a4c0-ec9b6b78db9c")
>>> rule.data_length() >>> rule.data_length()
""" """
def __init__(self, **kwargs): def __init__(self, **kwargs):

View File

@ -24,7 +24,7 @@ class Code(RulingsObject):
N/A N/A
Examples: Examples:
>>> rule = scrython.rulings.Code(code='ddg', collector_number='42') >>> rule = scrython.rulings.Code(code="ddg", collector_number="42")
>>> rule.data_length() >>> rule.data_length()
""" """
def __init__(self, code, collector_number): def __init__(self, code, collector_number):

View File

@ -1,2 +1,4 @@
from .code import Code from .code import Code
from .sets import Sets from .sets import Sets
__all__ = [ 'Code', 'Sets' ]

View File

@ -22,7 +22,7 @@ class Code(FoundationObject):
N/A N/A
Examples: Examples:
>>> set = scrython.sets.Code(code='por') >>> set = scrython.sets.Code(code="por")
>>> set.name() >>> set.name()
""" """
def __init__(self, code): def __init__(self, code):

View File

@ -21,7 +21,7 @@ class Sets(FoundationObject):
Examples: Examples:
>>> set = scrython.sets.Sets() >>> set = scrython.sets.Sets()
>>> set.data(3, 'name') >>> set.data(3, "name")
""" """
def __init__(self): def __init__(self):
self._url = 'sets?' self._url = 'sets?'

View File

@ -1,2 +1,4 @@
from .parse_mana import ParseMana from .parse_mana import ParseMana
from .symbology import Symbology from .symbology import Symbology
__all__ = [ 'ParseMana', 'Symbology' ]