Did I find the right examples for you? yes no

All Samples(189)  |  Call(157)  |  Derive(0)  |  Import(32)

src/m/e/mediawiki-utilities-0.3.0/mw/api/collections/pages.py   mediawiki-utilities(Download)
import re, logging
 
from ...util import none_or
 
from ..errors import MalformedResponse
			'action': "edit"
		}
		params['title'] = none_or(title, str)
		params['pageid'] = none_or(pageid, int)
		params['section'] = none_or(section, int, levels={'new'})
		params['sectiontitle'] = none_or(sectiontitle, str)

src/m/e/mediawiki-utilities-HEAD/mw/api/collections/pages.py   mediawiki-utilities(Download)
import re, logging
 
from ...util import none_or
 
from ..errors import MalformedResponse
			'action': "edit"
		}
		params['title'] = none_or(title, str)
		params['pageid'] = none_or(pageid, int)
		params['section'] = none_or(section, int, levels={'new'})
		params['sectiontitle'] = none_or(sectiontitle, str)

src/m/e/mediawiki-utilities-0.3.0/mw/database/collections/revisions.py   mediawiki-utilities(Download)
import time, logging
from itertools import chain
 
from ...types import Timestamp
from ...util import iteration, none_or
		start_time = time.time()
 
		page_id = none_or(page_id, int)
		user_id = none_or(user_id, int)
		user_text = none_or(user_text, str)
		before = none_or(before, Timestamp)

src/m/e/mediawiki-utilities-HEAD/mw/database/collections/revisions.py   mediawiki-utilities(Download)
import time, logging
from itertools import chain
 
from ...types import Timestamp
from ...util import iteration, none_or
		start_time = time.time()
 
		page_id = none_or(page_id, int)
		user_id = none_or(user_id, int)
		user_text = none_or(user_text, str)
		before = none_or(before, Timestamp)

src/m/e/mediawiki-utilities-0.3.0/mw/database/collections/users.py   mediawiki-utilities(Download)
import logging, time
 
from ...util import none_or
from ...types import Timestamp
 
			A user row. 
		"""
		user_id = none_or(user_id, int)
		user_name = none_or(user_name, str)
 
		start_time = time.time()
 
		registered_before = none_or(registered_before, Timestamp)
		registered_after = none_or(registered_after, Timestamp)
		before_id = none_or(before_id, str)

src/m/e/mediawiki-utilities-HEAD/mw/database/collections/users.py   mediawiki-utilities(Download)
import logging, time
 
from ...util import none_or
from ...types import Timestamp
 
			A user row. 
		"""
		user_id = none_or(user_id, int)
		user_name = none_or(user_name, str)
 
		start_time = time.time()
 
		registered_before = none_or(registered_before, Timestamp)
		registered_after = none_or(registered_after, Timestamp)
		before_id = none_or(before_id, str)

src/m/e/mediawiki-utilities-0.3.0/mw/xml_dump/iteration/revision.py   mediawiki-utilities(Download)
from ...types import serializable, Timestamp
from ...util import none_or
 
from .comment import Comment
from .contributor import Contributor
	def __init__(self, id, timestamp, contributor=None, minor=None, 
	             comment=None, text=None, bytes=None, sha1=None, 
	             parent_id=None, model=None, format=None):
		self.id          = none_or(id, int)
		"""
		Revision ID : `int`
		"""
 
		self.timestamp   = none_or(timestamp, Timestamp)
		"""
 
		self.contributor = none_or(contributor, Contributor.deserialize)
		"""
		Contributor meta data : :class:`~mw.xml_dump.Contributor` | `None`
		"""
 
		self.minor       = False or none_or(minor, bool)

src/m/e/mediawiki-utilities-HEAD/mw/xml_dump/iteration/revision.py   mediawiki-utilities(Download)
from ...types import serializable, Timestamp
from ...util import none_or
 
from .comment import Comment
from .contributor import Contributor
	def __init__(self, id, timestamp, contributor=None, minor=None, 
	             comment=None, text=None, bytes=None, sha1=None, 
	             parent_id=None, model=None, format=None):
		self.id          = none_or(id, int)
		"""
		Revision ID : `int`
		"""
 
		self.timestamp   = none_or(timestamp, Timestamp)
		"""
 
		self.contributor = none_or(contributor, Contributor.deserialize)
		"""
		Contributor meta data : :class:`~mw.xml_dump.Contributor` | `None`
		"""
 
		self.minor       = False or none_or(minor, bool)

src/m/e/mediawiki-utilities-0.3.0/mw/xml_dump/iteration/contributor.py   mediawiki-utilities(Download)
from ...types import serializable
from ...util import none_or
 
from .util import consume_tags
 
	def __init__(self, id, user_text):
		self.id = none_or(id, int)
		"""
		User ID : int | `None` (if not specified in the XML)
		"""
 
		self.user_text = none_or(user_text, str)

src/m/e/mediawiki-utilities-0.3.0/mw/xml_dump/iteration/iterator.py   mediawiki-utilities(Download)
from ...types import serializable
from ...util import none_or
 
from .. import errors
from ..element_iterator import ElementIterator
	def __init__(self, site_name=None, base=None, generator=None, case=None, 
	             namespaces=None, pages=None):
 
		self.site_name  = none_or(site_name, str)
		"""
		The name of the site. : str | `None` (if not specified in the XML)
		"""
 
		self.base       = none_or(base, str)
		"""
 
		self.generator  = none_or(generator, str)
		"""
		TODO: ??? : str | `None` (if not specified in the XML)
		"""
 
		self.case       = none_or(case, str)

  1 | 2 | 3 | 4  Next