code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
from typing import Callable import requests from .common import common_client, GET, logger def get_pipedrive_client(api_token:str, domain:str) -> Callable: """Returns a callable you can use to interact with your instance of Pipedrive. You'll need your [personal API token](https://pipedrive.readme.io/docs/how...
/rest_tools-0.7.2.tar.gz/rest_tools-0.7.2/rest_tools/pipedrive.py
0.804291
0.383526
pipedrive.py
pypi
from .common import common_client, GET def get_livestorm_client(apikey, base_url="https://api.livestorm.co/v1"): """Returns a callable you can use to interact with Livestorm API. :param apikey: A token from the Account Settings > Integrations page (see: https://developers.livestorm.co/docs/authorizatio...
/rest_tools-0.7.2.tar.gz/rest_tools-0.7.2/rest_tools/livestorm.py
0.769427
0.360602
livestorm.py
pypi
from rest_tools.common import common_client DEFAULT_NUMBER_OF_RESULTS = 25 def get_fusionauth_client(api_key:str, base_url:str, number_of_results:int=DEFAULT_NUMBER_OF_RESULTS): """Returns a callable you can use to interact with Fusionauth API. :param api_key: the api key, see: https://fusionauth.io/docs/v1/...
/rest_tools-0.7.2.tar.gz/rest_tools-0.7.2/rest_tools/fusionauth.py
0.811825
0.309545
fusionauth.py
pypi
import json from re import compile from typing import Callable from .common import get_complete_url, get_response, common_client def get_canvas_client(access_token:str, base_url:str) -> Callable: """Returns a callable you can use to interact with Canvas API. :param base_url: Your Canvas canonical URL (...
/rest_tools-0.7.2.tar.gz/rest_tools-0.7.2/rest_tools/canvas.py
0.858081
0.254578
canvas.py
pypi
from operator import itemgetter from typing import Callable import requests from .common import common_client, expiring, GET, logger @expiring(itemgetter('exp')) def get_wordpress_access_token(base_url, api_key, api_secret): r = requests.post(f"{base_url}/wp/v2/token", data={'api_key': api_key, 'api_secret': ap...
/rest_tools-0.7.2.tar.gz/rest_tools-0.7.2/rest_tools/wordpress.py
0.810966
0.153169
wordpress.py
pypi
"""Console script for rest_uploader.""" import sys import click import tempfile from .rest_uploader import ( watcher, set_autotag, set_notebook_id, set_working_directory, set_endpoint, set_token, set_language, set_autorotation, set_moveto, ) from . import __version__ def parse_arg...
/rest_uploader-1.19.0.tar.gz/rest_uploader-1.19.0/rest_uploader/cli.py
0.427994
0.172311
cli.py
pypi
import datetime import enum import typing import urllib.parse import warnings import requests import xmltodict try: # speedup import uvloop uvloop.install() import asyncio except ModuleNotFoundError or ImportError: # no uvloop import asyncio try: import aiohttp aiohttp_exists = True except...
/rest_vlc-1.6.1-py3-none-any.whl/rest_vlc.py
0.617859
0.155784
rest_vlc.py
pypi
import requests import json import hmac import hashlib base_url = "https://dma-api.defi.wiki/orders" def hashing(secret, query_string): return hmac.new( secret.encode("utf-8"), query_string.encode("utf-8"), hashlib.sha256 ).hexdigest() class ZerocapRestClient: def __init__(self, api_key, secret...
/rest_zerocap_client-0.0.5.tar.gz/rest_zerocap_client-0.0.5/rest_client/zerpcap_rest_client.py
0.459076
0.172381
zerpcap_rest_client.py
pypi
from pyats.connections import BaseConnection class Implementation(BaseConnection): '''Rest BaseClass Baseclass for Rest connection implementation YAML Example ------------ devices: PE1: credentials: rest: username: admi...
/rest.connector-23.8-py3-none-any.whl/rest/connector/implementation.py
0.828245
0.183484
implementation.py
pypi
import json import logging import requests from requests.exceptions import RequestException from pyats.connections import BaseConnection from rest.connector.implementation import Implementation as Imp from rest.connector.utils import get_username_password # create a logger for this module log = logging.getLogger(__...
/rest.connector-23.8-py3-none-any.whl/rest/connector/libs/nxos/aci/implementation.py
0.571527
0.169784
implementation.py
pypi
import json import logging import requests from requests.exceptions import RequestException from pyats.connections import BaseConnection from rest.connector.implementation import Implementation as Imp from rest.connector.utils import get_token # create a logger for this module log = logging.getLogger(__name__) cla...
/rest.connector-23.8-py3-none-any.whl/rest/connector/libs/webex/implementation.py
0.64713
0.16248
implementation.py
pypi
import json import logging import requests import time import urllib.parse from requests.exceptions import RequestException from pyats.connections import BaseConnection from rest.connector.implementation import Implementation as Imp from rest.connector.utils import get_username_password # create a logger for this mo...
/rest.connector-23.8-py3-none-any.whl/rest/connector/libs/nd/implementation.py
0.657868
0.154631
implementation.py
pypi
import time import json import logging import requests from requests.exceptions import RequestException from pyats.connections import BaseConnection from rest.connector.implementation import Implementation as Imp from rest.connector.utils import get_username_password # create a logger for this module log = logging....
/rest.connector-23.8-py3-none-any.whl/rest/connector/libs/apic/implementation.py
0.590779
0.164718
implementation.py
pypi
from django.core.exceptions import ObjectDoesNotExist from rest_framework import serializers class DynModelSerializer(serializers.ModelSerializer): """ Factory to include/exclude fields dynamically """ default_error_messages = { 'does_not_exist': 'Invalid pk "{pk_value}" - object does not exi...
/rest_framework_dyn_serializer-1.3.1.tar.gz/rest_framework_dyn_serializer-1.3.1/rest_framework_dyn_serializer.py
0.708414
0.217369
rest_framework_dyn_serializer.py
pypi
from django.contrib.auth import models as auth_models from rest_framework import viewsets, generics, renderers, parsers from rest_framework.decorators import list_route, detail_route from rest_framework.response import Response from rest_framework_ember import mixins, utils from ..serializers.identity import IdentitySe...
/rest_framework_ember-1.3.2.tar.gz/rest_framework_ember-1.3.2/example/api/resources/identity.py
0.579995
0.186317
identity.py
pypi
class Node: """Represents a node in a URL path tree This class represents a single node in the URL path tree. Each node in the tree may have an associated endpoint, and may have any number of children nodes. An object is considered Node-like if it defines add() and get() functions that can be calle...
/restapi_wsgi-0.0.1-py3-none-any.whl/restapi/node.py
0.915503
0.636042
node.py
pypi
import re import sys import datetime import calendar import email.utils as eut from time import mktime import jsonpickle import dateutil.parser from requests.utils import quote class APIHelper(object): """A Helper Class for various functions associated with API Calls. This class contains static methods for...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/api_helper.py
0.660391
0.356923
api_helper.py
pypi
from restapisdk.api_helper import APIHelper class HttpRequest(object): """Information about an HTTP Request including its method, headers, parameters, URL, and Basic Auth details Attributes: http_method (HttpMethodEnum): The HTTP Method that this request should perform when calle...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/http/http_request.py
0.869673
0.193128
http_request.py
pypi
from restapisdk.http.http_method_enum import HttpMethodEnum from restapisdk.http.http_request import HttpRequest class HttpClient(object): """An interface for the methods that an HTTP Client must implement This class should not be instantiated but should be used as a base class for HTTP Client classes. ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/http/http_client.py
0.909193
0.210401
http_client.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2GroupAddgroupRequest(object): """Implementation of the 'Api Rest V2 Group Addgroup Request' model. TODO: type model description here. Attributes: name (string): Name of the group id (string): The GU...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_addgroup_request.py
0.621541
0.344113
api_rest_v_2_group_addgroup_request.py
pypi
from restapisdk.models.meta_object_input import MetaObjectInput class ApiRestV2MetadataTagUnassignRequest(object): """Implementation of the 'Api Rest V2 Metadata Tag Unassign Request' model. TODO: type model description here. Attributes: name (string): Name of the tag id (string): The G...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_tag_unassign_request.py
0.6705
0.208743
api_rest_v_2_metadata_tag_unassign_request.py
pypi
class ApiRestV2GroupRemoveprivilegeRequest(object): """Implementation of the 'Api Rest V2 Group Removeprivilege Request' model. TODO: type model description here. Attributes: name (string): Name of the group id (string): The GUID of the group to query. privileges (list of Privileg...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_removeprivilege_request.py
0.662032
0.393094
api_rest_v_2_group_removeprivilege_request.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2UserUpdateRequest(object): """Implementation of the 'Api Rest V2 User Update Request' model. TODO: type model description here. Attributes: name (string): Name of the user account. The username string must ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_user_update_request.py
0.592431
0.312357
api_rest_v_2_user_update_request.py
pypi
from restapisdk.models.group_name_and_id import GroupNameAndID from restapisdk.models.user_name_and_id import UserNameAndID class UserResponse(object): """Implementation of the 'UserResponse' model. TODO: type model description here. Attributes: name (string): Username of the user account ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/user_response.py
0.456652
0.283592
user_response.py
pypi
class ApiRestV2MetadataTmlExportRequest(object): """Implementation of the 'Api Rest V2 Metadata Tml Export Request' model. TODO: type model description here. Attributes: id (list of string): A JSON array of GUIDs of the objects. format_type (FormatTypeEnum): The format in which to export ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_tml_export_request.py
0.675444
0.431524
api_rest_v_2_metadata_tml_export_request.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2UserSearchRequest(object): """Implementation of the 'Api Rest V2 User Search Request' model. TODO: type model description here. Attributes: name (string): Name of the user. id (string): The GUID of ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_user_search_request.py
0.634317
0.337613
api_rest_v_2_user_search_request.py
pypi
from restapisdk.models.user_name_and_id_input import UserNameAndIDInput class ApiRestV2GroupRemoveuserRequest(object): """Implementation of the 'Api Rest V2 Group Removeuser Request' model. TODO: type model description here. Attributes: name (string): Name of the group id (string): The ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_removeuser_request.py
0.618665
0.355915
api_rest_v_2_group_removeuser_request.py
pypi
class ApiRestV2SessionGettokenRequest(object): """Implementation of the 'Api Rest V2 Session Gettoken Request' model. TODO: type model description here. Attributes: user_name (string): Username of the user account password (string): The password of the user account token_expiry_du...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_session_gettoken_request.py
0.674265
0.339007
api_rest_v_2_session_gettoken_request.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2UserRemovegroupRequest(object): """Implementation of the 'Api Rest V2 User Removegroup Request' model. TODO: type model description here. Attributes: name (string): User name of the user account id ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_user_removegroup_request.py
0.617397
0.30948
api_rest_v_2_user_removegroup_request.py
pypi
from restapisdk.models.user_name_and_id_input import UserNameAndIDInput class ApiRestV2GroupAdduserRequest(object): """Implementation of the 'Api Rest V2 Group Adduser Request' model. TODO: type model description here. Attributes: name (string): Name of the group id (string): The GUID o...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_adduser_request.py
0.608827
0.354992
api_rest_v_2_group_adduser_request.py
pypi
class HomeLiveboardResponse(object): """Implementation of the 'HomeLiveboardResponse' model. TODO: type model description here. Attributes: user_name (string): Name of the user user_id (string): The GUID of the user liveboard_name (string): Name of the liveboard liveboard_...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/home_liveboard_response.py
0.660939
0.340979
home_liveboard_response.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2GroupRemovegroupRequest(object): """Implementation of the 'Api Rest V2 Group Removegroup Request' model. TODO: type model description here. Attributes: name (string): Name of the group id (string): ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_removegroup_request.py
0.628179
0.337968
api_rest_v_2_group_removegroup_request.py
pypi
class AccessLevelInput(object): """Implementation of the 'AccessLevelInput' model. TODO: type model description here. Attributes: name (string): Username or name of the user group id (string): GUID of the user or user group mtype (Type1Enum): Type of access detail provided ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/access_level_input.py
0.672009
0.344692
access_level_input.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2UserAddgroupRequest(object): """Implementation of the 'Api Rest V2 User Addgroup Request' model. TODO: type model description here. Attributes: name (string): Username of the user account id (string...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_user_addgroup_request.py
0.612194
0.318326
api_rest_v_2_user_addgroup_request.py
pypi
class ApiRestV2DatabaseTableCreateRequest(object): """Implementation of the 'Api Rest V2 Database Table Create Request' model. TODO: type model description here. Attributes: create_database (bool): Flag to indicate if the database and schema should be created if they do not exist in F...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_database_table_create_request.py
0.673729
0.366023
api_rest_v_2_database_table_create_request.py
pypi
class ApiRestV2SessionLoginRequest(object): """Implementation of the 'Api Rest V2 Session Login Request' model. TODO: type model description here. Attributes: user_name (string): Username of the user account password (string): The password of the user account remember_me (bool): A...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_session_login_request.py
0.642208
0.3143
api_rest_v_2_session_login_request.py
pypi
class ApiRestV2DatabaseTableRunqueryRequest(object): """Implementation of the 'Api Rest V2 Database Table Runquery Request' model. TODO: type model description here. Attributes: statement (list of string): A JSON array of TQL statements. Each TQL statement should end with semi-colon (...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_database_table_runquery_request.py
0.706697
0.425068
api_rest_v_2_database_table_runquery_request.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput class ApiRestV2UserCreateRequest(object): """Implementation of the 'Api Rest V2 User Create Request' model. TODO: type model description here. Attributes: name (string): Name of the user account. The username string must ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_user_create_request.py
0.62395
0.331755
api_rest_v_2_user_create_request.py
pypi
from restapisdk.models.meta_object_input import MetaObjectInput class ApiRestV2MetadataTagAssignRequest(object): """Implementation of the 'Api Rest V2 Metadata Tag Assign Request' model. TODO: type model description here. Attributes: name (string): Name of the tag id (string): The GUID ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_tag_assign_request.py
0.672977
0.214301
api_rest_v_2_metadata_tag_assign_request.py
pypi
from restapisdk.models.client_state import ClientState from restapisdk.models.tag_name_and_id import TagNameAndID class MetadataTagResponse(object): """Implementation of the 'MetadataTagResponse' model. TODO: type model description here. Attributes: name (string): Name of the tag id (st...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/metadata_tag_response.py
0.572842
0.287443
metadata_tag_response.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput from restapisdk.models.user_name_and_id_input import UserNameAndIDInput class ApiRestV2GroupCreateRequest(object): """Implementation of the 'Api Rest V2 Group Create Request' model. TODO: type model description here. Attributes: ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_create_request.py
0.64713
0.38341
api_rest_v_2_group_create_request.py
pypi
class ApiRestV2MetadataTmlImportRequest(object): """Implementation of the 'Api Rest V2 Metadata Tml Import Request' model. TODO: type model description here. Attributes: object_tml (list of string): A JSON array of TML objects to upload, in YAML or JSON format. If in YAML format withi...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_tml_import_request.py
0.648911
0.404037
api_rest_v_2_metadata_tml_import_request.py
pypi
from restapisdk.models.access_level_input import AccessLevelInput from restapisdk.models.name_and_id_input import NameAndIdInput from restapisdk.models.tag_name_and_id_input import TagNameAndIdInput class ApiRestV2MetadataHeaderSearchRequest(object): """Implementation of the 'Api Rest V2 Metadata Header Search R...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_header_search_request.py
0.557002
0.436142
api_rest_v_2_metadata_header_search_request.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput from restapisdk.models.user_name_and_id_input import UserNameAndIDInput class ApiRestV2GroupSearchRequest(object): """Implementation of the 'Api Rest V2 Group Search Request' model. TODO: type model description here. Attributes: ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_search_request.py
0.654895
0.389866
api_rest_v_2_group_search_request.py
pypi
class TableTypes(object): """Implementation of the 'TableTypes' model. TODO: type model description here. Attributes: name (string): TODO: type description here. db_name (string): TODO: type description here. schema_name (string): TODO: type description here. column (list ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/table_types.py
0.553988
0.357427
table_types.py
pypi
from restapisdk.models.meta_object_input import MetaObjectInput class ApiRestV2MetadataFavoriteUnassignRequest(object): """Implementation of the 'Api Rest V2 Metadata Favorite Unassign Request' model. TODO: type model description here. Attributes: user_name (string): Name of the user us...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_favorite_unassign_request.py
0.647241
0.206934
api_rest_v_2_metadata_favorite_unassign_request.py
pypi
from restapisdk.models.logical_table_header import LogicalTableHeader class CreateTableResponse(object): """Implementation of the 'CreateTableResponse' model. TODO: type model description here. Attributes: logical_table_header (LogicalTableHeader): TODO: type description here. ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/create_table_response.py
0.591841
0.320117
create_table_response.py
pypi
from restapisdk.models.group_name_and_id_input import GroupNameAndIDInput from restapisdk.models.user_name_and_id_input import UserNameAndIDInput class ApiRestV2GroupUpdateRequest(object): """Implementation of the 'Api Rest V2 Group Update Request' model. TODO: type model description here. Attributes: ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_update_request.py
0.650467
0.393123
api_rest_v_2_group_update_request.py
pypi
from restapisdk.models.group_name_and_id import GroupNameAndID from restapisdk.models.liveboard_name_and_id import LiveboardNameAndID from restapisdk.models.user_name_and_id import UserNameAndID class GroupResponse(object): """Implementation of the 'GroupResponse' model. TODO: type model description here. ...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/group_response.py
0.482185
0.302984
group_response.py
pypi
class ApiRestV2MetadataHomeliveboardAssignRequest(object): """Implementation of the 'Api Rest V2 Metadata Homeliveboard Assign Request' model. TODO: type model description here. Attributes: user_name (string): Name of the user user_id (string): The GUID of the user liveboard_id (s...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_homeliveboard_assign_request.py
0.675229
0.301773
api_rest_v_2_metadata_homeliveboard_assign_request.py
pypi
from restapisdk.models.meta_object_input import MetaObjectInput class ApiRestV2MetadataFavoriteAssignRequest(object): """Implementation of the 'Api Rest V2 Metadata Favorite Assign Request' model. TODO: type model description here. Attributes: user_name (string): Name of the user user_i...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_favorite_assign_request.py
0.650356
0.213213
api_rest_v_2_metadata_favorite_assign_request.py
pypi
class LogicalTableHeader(object): """Implementation of the 'LogicalTableHeader' model. TODO: type model description here. Attributes: id (string): TODO: type description here. name (string): TODO: type description here. author (string): TODO: type description here. author_...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/logical_table_header.py
0.546012
0.268471
logical_table_header.py
pypi
class ApiRestV2MetadataDependencyRequest(object): """Implementation of the 'Api Rest V2 Metadata Dependency Request' model. TODO: type model description here. Attributes: mtype (Type10Enum): Type of the data object id (list of string): A JSON array of GUIDs of the objects batch_si...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_metadata_dependency_request.py
0.715126
0.426381
api_rest_v_2_metadata_dependency_request.py
pypi
class ApiRestV2GroupAddprivilegeRequest(object): """Implementation of the 'Api Rest V2 Group Addprivilege Request' model. TODO: type model description here. Attributes: name (string): Name of the group id (string): The GUID of the group to query. privileges (list of PrivilegeEnum)...
/restapisdktest-1.6.8.tar.gz/restapisdktest-1.6.8/restapisdk/models/api_rest_v_2_group_addprivilege_request.py
0.6488
0.402568
api_rest_v_2_group_addprivilege_request.py
pypi
from io import BytesIO import os import json import pkgutil import textwrap from typing import Any, Dict, Iterable, List from urllib.request import urlopen import pandas as pd # This is the tag in http://github.com/vega/vega-datasets from # which the datasets in this repository are sourced. SOURCE_TAG = "v1.29.0" de...
/restart_datasets-0.6-py3-none-any.whl/restart_datasets/core.py
0.796094
0.409752
core.py
pypi
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/restartus/restart/master?filepath=nb%2F) # COVID-19 Restart the World Getting the world up and running again isn't going to be easy. This project is a start at making that easier. Feel free to take pieces and contribute. While we wait for an e...
/restart-2.6.7.tar.gz/restart-2.6.7/README.md
0.556159
0.952662
README.md
pypi
from typing import Optional from restart.src.log import Log from restart.src.model import Model from restart.src.util import set_config class RestartModel: """Bootstrap a model object in a notebook environment.""" def __init__( self, population: str = "dict", organization: Optional[s...
/restartus-2.5.0.1-py3-none-any.whl/restart/restart.py
0.886101
0.230292
restart.py
pypi
import datetime import os from pathlib import Path from typing import Dict, Optional, Union import confuse # type: ignore import ipysheet # type: ignore import numpy as np # type: ignore import pandas as pd # type: ignore from IPython.display import display # type: ignore def set_config(path: str): """Set a...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/util.py
0.889625
0.37542
util.py
pypi
import math import os from typing import Dict, List, Optional, Tuple import confuse # type: ignore import numpy as np # type: ignore import pandas as pd # type: ignore from .data import Data # type: ignore from .filtermodel import Filter # type: ignore from .load_csv import LoadCSV # type: ignore from .log impo...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/population_oes.py
0.798894
0.363336
population_oes.py
pypi
from typing import Callable, Dict import confuse # type: ignore import yaml from .base import Base # type: ignore from .log import Log # type: ignore class Output(Base): """Creates an output object. Supply a callback that provides each model element in turn since we we cannot pass it. For while mutu...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/output.py
0.788217
0.213131
output.py
pypi
import logging from typing import Dict, Optional, Tuple import pandas as pd # type:ignore from .log import Log # type: ignore class BaseLog: """Logging is at the very bottom.""" def __init__(self, log_root: Optional[Log] = None): """Set the Root Log.""" # since we have no log otherwise ...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/base.py
0.860486
0.262647
base.py
pypi
from typing import Optional # Insert the classes of data we support here import confuse # type: ignore # Note that pip install data-science-types caused errors from .base import Base # type: ignore from .data import Data # type: ignore from .log import Log # type: ignore class Population(Base): """Populatio...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/population.py
0.871993
0.730843
population.py
pypi
from __future__ import annotations # For slices of parameters from enum import Enum from typing import List import confuse # type: ignore import numpy as np # type: ignore from .base import Base # type: ignore from .data import Data # type: ignore from .log import Log # type: ignore # https://docs.python.org/...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/inventory.py
0.7586
0.272272
inventory.py
pypi
import os from typing import Dict, List, Optional import pandas as pd # type:ignore from .load import Load # type: ignore from .log import Log # type: ignore class LoadCSV(Load): """Converts Excel and CSV files into dataframe objects. If you give it files with a .xlsx, .xls, or .csv extension, it will r...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/load_csv.py
0.669529
0.221582
load_csv.py
pypi
from __future__ import annotations from typing import Generator, List, Optional, Tuple from .base import Base # type: ignore from .demand import Demand # type: ignore from .demand_dict import DemandDict # type: ignore from .epi import Epi # type: ignore from .epi_dict import EpiDict # type: ignore from .epi_tabl...
/restartus-2.5.0.1-py3-none-any.whl/restart/src/model.py
0.841337
0.257279
model.py
pypi
from typing import Optional from restart.src.log import Log from restart.src.model import Model from restart.src.util import set_config class RestartModel: """Bootstrap a model object in a notebook environment.""" def __init__( self, population: str = "dict", organization: Optional[s...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/restart.py
0.886101
0.230292
restart.py
pypi
import datetime import os from pathlib import Path from typing import Dict, Optional, Union import confuse # type: ignore import ipysheet # type: ignore import numpy as np # type: ignore import pandas as pd # type: ignore from IPython.display import display # type: ignore def set_config(path: str): """Set a...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/util.py
0.889625
0.37542
util.py
pypi
import math import os from typing import Dict, List, Optional, Tuple import confuse # type: ignore import numpy as np # type: ignore import pandas as pd # type: ignore from .data import Data # type: ignore from .filtermodel import Filter # type: ignore from .load_csv import LoadCSV # type: ignore from .log impo...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/population_oes.py
0.798894
0.363336
population_oes.py
pypi
from typing import Callable, Dict import confuse # type: ignore import yaml from .base import Base # type: ignore from .log import Log # type: ignore class Output(Base): """Creates an output object. Supply a callback that provides each model element in turn since we we cannot pass it. For while mutu...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/output.py
0.788217
0.213131
output.py
pypi
import logging from typing import Dict, Optional, Tuple import pandas as pd # type:ignore from .log import Log # type: ignore class BaseLog: """Logging is at the very bottom.""" def __init__(self, log_root: Optional[Log] = None): """Set the Root Log.""" # since we have no log otherwise ...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/base.py
0.860486
0.262647
base.py
pypi
from typing import Optional # Insert the classes of data we support here import confuse # type: ignore # Note that pip install data-science-types caused errors from .base import Base # type: ignore from .data import Data # type: ignore from .log import Log # type: ignore class Population(Base): """Populatio...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/population.py
0.871993
0.730843
population.py
pypi
from __future__ import annotations # For slices of parameters from enum import Enum from typing import List import confuse # type: ignore import numpy as np # type: ignore from .base import Base # type: ignore from .data import Data # type: ignore from .log import Log # type: ignore # https://docs.python.org/...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/inventory.py
0.7586
0.272272
inventory.py
pypi
import os from typing import Dict, List, Optional import pandas as pd # type:ignore from .load import Load # type: ignore from .log import Log # type: ignore class LoadCSV(Load): """Converts Excel and CSV files into dataframe objects. If you give it files with a .xlsx, .xls, or .csv extension, it will r...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/load_csv.py
0.669529
0.221582
load_csv.py
pypi
from __future__ import annotations from typing import Generator, List, Optional, Tuple from .base import Base # type: ignore from .demand import Demand # type: ignore from .demand_dict import DemandDict # type: ignore from .epi import Epi # type: ignore from .epi_dict import EpiDict # type: ignore from .epi_tabl...
/restartus-2.5.0.1-py3-none-any.whl/build/lib/restart/src/model.py
0.841337
0.257279
model.py
pypi
[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/muhammad-rafi/restconf-cli) [![Build Status](https://github.com/muhammad-rafi/restconf-cli/actions/workflows/main.yaml/badge.svg)](https://github.com/muhammad-ra...
/restconf-cli-0.1.5.tar.gz/restconf-cli-0.1.5/README.md
0.594669
0.795698
README.md
pypi
import click import requests from rich import print # Disable InsecureRequestWarning: Unverified HTTPS request is being made. requests.packages.urllib3.disable_warnings() # Creating click group as parent function for other click commands to be attached with @click.group() def restconf_cli(): """ CLI tool to in...
/restconf-cli-0.1.5.tar.gz/restconf-cli-0.1.5/restconf_cli.py
0.506347
0.216632
restconf_cli.py
pypi
class HTTPException(Exception): """Exception that's thrown when an HTTP request operation fails. Attributes ------------ response: :class:`aiohttp.ClientResponse` The response of the failed HTTP request. This is an instance of :class:`aiohttp.ClientResponse`. In some cases this ...
/restcord.py-0.0.6-py3-none-any.whl/restcord/errors.py
0.875581
0.18072
errors.py
pypi
import random from factory import Factory, Faker, LazyAttribute, SubFactory, fuzzy from pydantic import HttpUrl from restcountries_cli import constants, models class CountryNameFactory(Factory): """ Main sub factory for the country name """ common: str = fuzzy.FuzzyText() official: str = fuzzy....
/restcountries_cli-0.0.1.tar.gz/restcountries_cli-0.0.1/restcountries_cli/factories.py
0.613815
0.343067
factories.py
pypi
from pydantic import BaseModel, HttpUrl class CountryBaseName(BaseModel): """ Helper pydantic model that has common fields for the native name and the country name """ common: str official: str class CountryName(CountryBaseName): """ Model for the country name """ native_name: ...
/restcountries_cli-0.0.1.tar.gz/restcountries_cli-0.0.1/restcountries_cli/models.py
0.850298
0.495606
models.py
pypi
import os.path import uuid import requests_cache from restcountries_cli.exceptions import APIException, NotValidEndpoint from restcountries_cli.models import Country class RestCountriesCli: """ Main client to obtain the values of the countries from restcountries """ def __init__( self, ...
/restcountries_cli-0.0.1.tar.gz/restcountries_cli-0.0.1/restcountries_cli/cli.py
0.696784
0.196961
cli.py
pypi
from ..utils import Decorators class CollectionAPI: """ The API calls defined here are used to make calls to your collection in your database. """ TEMPLATE_URL_COLLECTION = "https://{}.restdb.io/rest/{}" TEMPLATE_URL_COLLECTION_ID = "https://{}.restdb.io/rest/{}/{}" TEMPLATE_URL_COLLECTION_ID_...
/restdbio_api_wrapper-0.0.12.tar.gz/restdbio_api_wrapper-0.0.12/restdbio_api_wrapper/apis/CollectionAPI.py
0.812123
0.20466
CollectionAPI.py
pypi
class ExceptionsMeta(type): """ Metaclass for the exceptions I will be declaring. Since all exceptions are structurally the same, I decided using a metaclass would prove useful. """ def __new__(cls, name, bases=tuple(), dct=dict()): x = super().__new__(cls, name, bases, dct) def...
/restdbio_api_wrapper-0.0.12.tar.gz/restdbio_api_wrapper-0.0.12/restdbio_api_wrapper/utils/Exceptions.py
0.82566
0.25197
Exceptions.py
pypi
import requests from .Exceptions import * class Decorators: """ All decorators used within the package are defined here. """ @staticmethod def url_to_get(method): """ Decorates a method that returns a url, converting it into a get_request_performer. Parameters: met...
/restdbio_api_wrapper-0.0.12.tar.gz/restdbio_api_wrapper-0.0.12/restdbio_api_wrapper/utils/Decorators.py
0.919949
0.206034
Decorators.py
pypi
# RestDoctor BestDoctor's batteries for REST services. ## Для чего нужен RestDoctor У нас в BestDoctor есть [свой API Guide](https://github.com/best-doctor/guides/blob/master/guides/api_guide.md), в котором написано, как API должно быть построено. А еще у нас есть Django и довольно логично использовать Django Rest F...
/restdoctor-0.0.61.tar.gz/restdoctor-0.0.61/README.md
0.556882
0.837819
README.md
pypi
from django.db.models.fields import BLANK_CHOICE_DASH from django.utils.translation import ugettext as _ from rest_framework import serializers as rf_serializers from rest_framework import fields as rf_fields from copy import copy import warnings class CheckRequiredField(rf_fields.BooleanField): """ CheckReq...
/restframework_definable_serializer-0.1.13-py3-none-any.whl/definable_serializer/extra_fields/__init__.py
0.68721
0.226067
__init__.py
pypi
from rdflib import URIRef MIGRATION_OVERRIDE_MESSAGE = 'Override this method to return an rdflib.Graph.' def on_add(uri): """ Decorator for RDFMigration class methods. Use this to mark a method as handling the introduction of a particular subject URI. Each method can be decorated only once in th...
/restframework-rdf-1.0.tar.gz/restframework-rdf-1.0/rdf/migrations.py
0.873012
0.3863
migrations.py
pypi
import random import re from urllib.parse import urlencode from urllib.request import Request, urlopen from django.conf import settings from rdflib import ConjunctiveGraph, Graph, Literal, URIRef from rdflib.plugins.stores.sparqlstore import SPARQLStore from rdflib.plugins.stores.sparqlconnector import ( SPARQLCon...
/restframework-rdf-1.0.tar.gz/restframework-rdf-1.0/rdf/utils.py
0.664431
0.244453
utils.py
pypi
import inspect import json from collections.abc import Callable from typing import Any, Dict, Optional from restful_aws_lambda.request import Request class Route: # pylint: disable=C0103,R0903 """ Lambda handler decorator core class. """ def __init__(self, lambda_handler: Callable, json_dumps_optio...
/restful_aws_lambda-0.1.2-py3-none-any.whl/restful_aws_lambda/route.py
0.815747
0.196248
route.py
pypi
import json from typing import Optional class Request: """ Request objects created in @route handlers, and accessible from within the handler as the "request" argument. It contains parsed information about the API Gateway event. Parameters ---------- event : dict The API Gateway e...
/restful_aws_lambda-0.1.2-py3-none-any.whl/restful_aws_lambda/request.py
0.845145
0.399577
request.py
pypi
from typing import Dict, List, Callable, Union from urllib.parse import urljoin import requests import json from functools import wraps class NoneEtag(IOError): """None etag from api""" pass class APIClient(object): """ A dmicros api connection ==== Provides api functions """ def ...
/restful-client-lite-0.0.5.tar.gz/restful-client-lite-0.0.5/restful_client_lite/clients.py
0.829561
0.229492
clients.py
pypi
import hashlib import datetime from functools import wraps import urllib.parse from typing import Callable, Dict, Tuple from restful_client_lite import APIClient class WangduoyunApiClient(APIClient): """ WangDuoYun api client Notice: See docs at https://docs.wangduoyun.com/develop/overview/aboutus.h...
/restful-client-lite-0.0.5.tar.gz/restful-client-lite-0.0.5/restful_client_lite/contrib/wangduoyun.py
0.796688
0.234889
wangduoyun.py
pypi
from django.http import HttpResponse, HttpRequest from .meta import RouteMeta # 注册的路由中间件列表 MIDDLEWARE_INSTANCE_LIST = [] def register_middlewares(*middlewares): """ 注册中间件,注册的中间件将按顺序执行 :param middlewares: :return: """ for middleware_cls in middlewares: MIDDLEWARE_INSTANCE_LIST.append(...
/restful_dj-2.0.1-py3-none-any.whl/restful_dj/middleware.py
0.48121
0.216384
middleware.py
pypi
from types import MethodType class RouteMeta: """ 路由元数据 """ def __init__(self, handler: MethodType, func_args, route_id=None, module=None, name=None, kwargs=None): """ :param handler...
/restful_dj-2.0.1-py3-none-any.whl/restful_dj/meta.py
0.572364
0.241143
meta.py
pypi
from enum import Enum from typing import Any, Callable, Dict, List, Optional class ArgType(Enum): INTEGER = 'INTEGER' FLOAT = 'FLOAT' STRING = 'STRING' BOOLEAN = 'BOOLEAN' LIST = 'LIST' DICT = 'DICT' class ArgValidateResult: __slots__ = ['is_ok', 'value'] def __init__(self, is_ok: b...
/restful_functions-2.0.1-py3-none-any.whl/restful_functions/modules/function.py
0.860999
0.17892
function.py
pypi
import os.path from typing import Any, MutableMapping import structlog from starlette_context import context logging_config = { "version": 1, "disable_existing_loggers": False, "formatters": { "json": { "()": structlog.stdlib.ProcessorFormatter, "processor": structlog.proc...
/restful_starlette-0.0.4-py3-none-any.whl/restful_starlette/log/structlog.py
0.498047
0.21428
structlog.py
pypi
from enum import IntEnum from typing import Type, List, Union, Any, Dict from pydantic import BaseModel, Field from starlette import status from starlette.background import BackgroundTask from starlette.responses import JSONResponse class StateEnum(IntEnum): """ 用于表示业务逻辑状态的枚举类 """ OK = 1 BROK...
/restful_starlette-0.0.4-py3-none-any.whl/restful_starlette/http/response.py
0.686055
0.225225
response.py
pypi
""" Integration for Google AppEngine secure python scaffold. """ from __future__ import absolute_import, unicode_literals # stdlib imports from collections import namedtuple from types import FunctionType from typing import List, Text, Tuple, Type # 3rd party imports from restible import ( RestEndpoint, RestR...
/restible-appengine-0.5.1.tar.gz/restible-appengine-0.5.1/src/restible_appengine/secure/decorators.py
0.882288
0.180395
decorators.py
pypi
""" restible-swagger decorators. """ from __future__ import absolute_import, unicode_literals # stdlib imports from types import FunctionType from typing import Any, Dict, List # 3rd party imports import attr # local imports from . import util @attr.s class RouteMeta(object): """ A helper class to store all th...
/restible-swagger-0.3.3.tar.gz/restible-swagger-0.3.3/src/restible_swagger/decorators.py
0.901666
0.249653
decorators.py
pypi
""" Helper for defining API route mappings through config. """ from __future__ import absolute_import, unicode_literals # stdlib imports from typing import Any, Dict, List, Type # 3rd party imports import attr from restible import RestResource # local imports from .endpoint import EndpointBuilder @attr.s class Rou...
/restible-swagger-0.3.3.tar.gz/restible-swagger-0.3.3/src/restible_swagger/route.py
0.904386
0.173288
route.py
pypi
""" Endpoint builder. """ from __future__ import absolute_import, unicode_literals # stdlib imports import textwrap # 3rd party imports from restible import ModelResource from six import iteritems, string_types # pylint: disable=wrong-import-order # local imports from . import util from .decorators import RouteM...
/restible-swagger-0.3.3.tar.gz/restible-swagger-0.3.3/src/restible_swagger/endpoint.py
0.78842
0.164785
endpoint.py
pypi