Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(1) | Call(0) | Derive(0) | Import(1)
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
src/p/y/pyzenfolio-0.9/pyzenfolio/api.py pyzenfolio(Download)
from hashlib import sha256 from random import randint from .constants import API_ENDPOINT, REQUEST_HEADERS, DEFAULT_OBJECTS, DEFAULT_CONFIG from .exceptions import APIError, ConfigError, HTTPError, ZenfolioError from .utils import AttrDict, convert_to_datetime, convert_from_datetime, SSLAdapter
def get_request_headers(self): headers = dict(REQUEST_HEADERS) if 'token' in self.auth: headers.update({ 'X-Zenfolio-Token': self.auth.token