code stringlengths 1 5.19M | package stringlengths 1 81 | path stringlengths 9 304 | filename stringlengths 4 145 |
|---|---|---|---|
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup (
... | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/setup.py | setup.py |
__import__('pkg_resources').declare_namespace(__name__)
| 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/__init__.py | __init__.py |
import redis
import uuid
import json
import textwrap
import shlex
import base64
import signal
import socket
import logging
import time
from . import typchk
DefaultTimeout = 10 # seconds
logger = logging.getLogger('g8core')
class Timeout(Exception):
pass
class JobNotFound(Exception):
pass
class Return:... | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py |
missing = object()
def primitive(typ):
return typ in [str, int, float, bool]
class CheckerException(BaseException):
pass
class Tracker(BaseException):
def __init__(self, base):
self._base = base
self._reason = None
self._branches = []
@property
def branches(self):
... | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/typchk.py | typchk.py |
from .client import Client
| 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/__init__.py | __init__.py |
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/setup.py | setup.py |
__import__('pkg_resources').declare_namespace(__name__)
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/__init__.py | __init__.py |
def get_configuration_and_service(ays_repo):
services = ays_repo.servicesFind(actor='configuration')
if len(services) > 1:
raise RuntimeError('Multiple configuration services found')
service = services[0] if services else None
configuration = service.model.data.to_dict()['configurations'] if se... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/configuration.py | configuration.py |
"""
Auto-generated class for Cluster
"""
from .EnumClusterDriveType import EnumClusterDriveType
from .EnumClusterStatus import EnumClusterStatus
from .StorageServer import StorageServer
from . import client_support
class Cluster(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def cre... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Cluster.py | Cluster.py |
from enum import Enum
class EnumClusterCreateDriveType(Enum):
nvme = "nvme"
ssd = "ssd"
hdd = "hdd"
archive = "archive"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumClusterCreateDriveType.py | EnumClusterCreateDriveType.py |
from enum import Enum
class EnumBridgeCreateNetworkMode(Enum):
none = "none"
static = "static"
dnsmasq = "dnsmasq"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumBridgeCreateNetworkMode.py | EnumBridgeCreateNetworkMode.py |
from enum import Enum
class EnumContainerNICType(Enum):
zerotier = "zerotier"
vxlan = "vxlan"
vlan = "vlan"
default = "default"
bridge = "bridge"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumContainerNICType.py | EnumContainerNICType.py |
from enum import Enum
class EnumStoragePoolDeviceStatus(Enum):
healthy = "healthy"
removing = "removing"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolDeviceStatus.py | EnumStoragePoolDeviceStatus.py |
"""
Auto-generated class for FilesystemCreate
"""
from . import client_support
class FilesystemCreate(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(name, quota, readOnly):
"""
:type name: str
:type quota: int
:type readOnly: bool
:... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/FilesystemCreate.py | FilesystemCreate.py |
"""
Auto-generated class for ProcessSignal
"""
from . import client_support
class ProcessSignal(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(signal):
"""
:type signal: int
:rtype: ProcessSignal
"""
return ProcessSignal(
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ProcessSignal.py | ProcessSignal.py |
"""
Auto-generated class for VM
"""
from .EnumVMStatus import EnumVMStatus
from .NicLink import NicLink
from .VDiskLink import VDiskLink
from . import client_support
class VM(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(cpu, disks, id, memory, nics, status, vnc):
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VM.py | VM.py |
"""
Auto-generated class for HealthCheck
"""
from . import client_support
class HealthCheck(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(id, message, name, resource, status):
"""
:type id: str
:type message: str
:type name: str
:t... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/HealthCheck.py | HealthCheck.py |
from enum import Enum
class EnumStoragePoolCreateDataProfile(Enum):
raid0 = "raid0"
raid1 = "raid1"
raid5 = "raid5"
raid6 = "raid6"
raid10 = "raid10"
dup = "dup"
single = "single"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolCreateDataProfile.py | EnumStoragePoolCreateDataProfile.py |
from enum import Enum
class EnumStoragePoolDataProfile(Enum):
raid0 = "raid0"
raid1 = "raid1"
raid5 = "raid5"
raid6 = "raid6"
raid10 = "raid10"
dup = "dup"
single = "single"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolDataProfile.py | EnumStoragePoolDataProfile.py |
"""
Auto-generated class for StoragePool
"""
from .EnumStoragePoolDataProfile import EnumStoragePoolDataProfile
from .EnumStoragePoolMetadataProfile import EnumStoragePoolMetadataProfile
from .EnumStoragePoolStatus import EnumStoragePoolStatus
from . import client_support
class StoragePool(object):
"""
auto-... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/StoragePool.py | StoragePool.py |
"""
Auto-generated class for JobListItem
"""
from . import client_support
class JobListItem(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(id, startTime):
"""
:type id: str
:type startTime: int
:rtype: JobListItem
"""
retur... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/JobListItem.py | JobListItem.py |
"""
Auto-generated class for VdiskListItem
"""
from .EnumVdiskListItemStatus import EnumVdiskListItemStatus
from .EnumVdiskListItemType import EnumVdiskListItemType
from . import client_support
class VdiskListItem(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(id, status,... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VdiskListItem.py | VdiskListItem.py |
"""
Auto-generated class for BridgeCreateSetting
"""
from . import client_support
class BridgeCreateSetting(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(cidr, end, start):
"""
:type cidr: str
:type end: str
:type start: str
:rtype... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/BridgeCreateSetting.py | BridgeCreateSetting.py |
from enum import Enum
class EnumContainerStatus(Enum):
running = "running"
halted = "halted"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumContainerStatus.py | EnumContainerStatus.py |
"""
Auto-generated class for GWNICconfig
"""
from . import client_support
class GWNICconfig(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(cidr, gateway=None):
"""
:type cidr: str
:type gateway: str
:rtype: GWNICconfig
"""
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GWNICconfig.py | GWNICconfig.py |
"""
Auto-generated class for Dashboard
"""
from . import client_support
class Dashboard(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(dashboard, name):
"""
:type dashboard: str
:type name: str
:rtype: Dashboard
"""
return ... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Dashboard.py | Dashboard.py |
"""
Auto-generated class for Container
"""
from .ContainerNIC import ContainerNIC
from .CoreSystem import CoreSystem
from .EnumContainerStatus import EnumContainerStatus
from . import client_support
class Container(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(filesystem... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Container.py | Container.py |
"""
Auto-generated class for CloudInit
"""
from . import client_support
class CloudInit(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(metadata, userdata):
"""
:type metadata: str
:type userdata: str
:rtype: CloudInit
"""
r... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/CloudInit.py | CloudInit.py |
"""
Auto-generated class for ZerotierJoin
"""
from . import client_support
class ZerotierJoin(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(nwid, token=None):
"""
:type nwid: str
:type token: str
:rtype: ZerotierJoin
"""
r... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ZerotierJoin.py | ZerotierJoin.py |
"""
Auto-generated class for NodeHealthCheck
"""
from . import client_support
class NodeHealthCheck(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(hostname, id, status):
"""
:type hostname: str
:type id: str
:type status: str
:rtype... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/NodeHealthCheck.py | NodeHealthCheck.py |
"""
Auto-generated class for Bridge
"""
from .BridgeCreateSetting import BridgeCreateSetting
from .EnumBridgeStatus import EnumBridgeStatus
from . import client_support
class Bridge(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(name, setting, status):
"""
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Bridge.py | Bridge.py |
from enum import Enum
class HTTPType(Enum):
http = "http"
https = "https"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/HTTPType.py | HTTPType.py |
"""
Auto-generated class for VMNicInfo
"""
from . import client_support
class VMNicInfo(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(receivedPackets, receivedThroughput, transmittedPackets, transmittedThroughput):
"""
:type receivedPackets: int
:... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMNicInfo.py | VMNicInfo.py |
"""
Auto-generated class for DeleteFile
"""
from . import client_support
class DeleteFile(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(path):
"""
:type path: str
:rtype: DeleteFile
"""
return DeleteFile(
path=path,
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/DeleteFile.py | DeleteFile.py |
"""
Auto-generated class for NicLink
"""
from .EnumNicLinkType import EnumNicLinkType
from . import client_support
class NicLink(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(type, id=None, macaddress=None):
"""
:type id: str
:type macaddress: str... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/NicLink.py | NicLink.py |
"""
Auto-generated class for Filesystem
"""
from . import client_support
class Filesystem(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(mountpoint, name, parent, quota, readOnly, sizeOnDisk):
"""
:type mountpoint: str
:type name: str
:type... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Filesystem.py | Filesystem.py |
"""
Auto-generated class for ContainerNIC
"""
from .ContainerNICconfig import ContainerNICconfig
from .EnumContainerNICStatus import EnumContainerNICStatus
from .EnumContainerNICType import EnumContainerNICType
from . import client_support
class ContainerNIC(object):
"""
auto-generated. don't touch.
"""
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ContainerNIC.py | ContainerNIC.py |
"""
Auto-generated class for VdiskResize
"""
from . import client_support
class VdiskResize(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(newSize):
"""
:type newSize: int
:rtype: VdiskResize
"""
return VdiskResize(
new... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VdiskResize.py | VdiskResize.py |
"""
Auto-generated class for VMDiskInfo
"""
from . import client_support
class VMDiskInfo(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(readIops, readThroughput, writeIops, writeThroughput):
"""
:type readIops: int
:type readThroughput: int
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/VMDiskInfo.py | VMDiskInfo.py |
from enum import Enum
class EnumStoragePoolStatus(Enum):
healthy = "healthy"
degraded = "degraded"
error = "error"
unknown = "unknown"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumStoragePoolStatus.py | EnumStoragePoolStatus.py |
"""
Auto-generated class for JobResult
"""
from .EnumJobResultName import EnumJobResultName
from .EnumJobResultState import EnumJobResultState
from . import client_support
class JobResult(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(data, id, level, name, startTime, sta... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/JobResult.py | JobResult.py |
"""
support methods for python clients
"""
import json
import collections
from datetime import datetime
from uuid import UUID
from enum import Enum
from dateutil import parser
# python2/3 compatible basestring, for use in to_dict
try:
basestring
except NameError:
basestring = str
def timestamp_from_datetim... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/client_support.py | client_support.py |
"""
Auto-generated class for DiskInfo
"""
from .DiskPartition import DiskPartition
from .EnumDiskInfoType import EnumDiskInfoType
from . import client_support
class DiskInfo(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(device, partitions, size, type):
"""
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/DiskInfo.py | DiskInfo.py |
from enum import Enum
class EnumNicLinkType(Enum):
vlan = "vlan"
vxlan = "vxlan"
default = "default"
bridge = "bridge"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumNicLinkType.py | EnumNicLinkType.py |
"""
Auto-generated class for PortForward
"""
from .IPProtocol import IPProtocol
from . import client_support
class PortForward(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(dstip, dstport, protocols, srcip, srcport):
"""
:type dstip: str
:type dst... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/PortForward.py | PortForward.py |
"""
Auto-generated class for ContainerListItem
"""
from .EnumContainerListItemStatus import EnumContainerListItemStatus
from . import client_support
class ContainerListItem(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(flist, hostname, name, status):
"""
... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ContainerListItem.py | ContainerListItem.py |
"""
Auto-generated class for ContainerNICconfig
"""
from . import client_support
class ContainerNICconfig(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(cidr, dhcp, dns=None, gateway=None):
"""
:type cidr: str
:type dhcp: bool
:type dns: li... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/ContainerNICconfig.py | ContainerNICconfig.py |
"""
Auto-generated class for Job
"""
from . import client_support
class Job(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(id, logLevels, maxRestart, maxTime, queue, recurringPeriod, statsInterval, tags):
"""
:type id: str
:type logLevels: list[int... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Job.py | Job.py |
from enum import Enum
class EnumNodeStatus(Enum):
running = "running"
halted = "halted"
| 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/EnumNodeStatus.py | EnumNodeStatus.py |
"""
Auto-generated class for Vdisk
"""
from .EnumVdiskStatus import EnumVdiskStatus
from .EnumVdiskType import EnumVdiskType
from . import client_support
class Vdisk(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(blocksize, id, size, status, storagecluster, tlogStorageclu... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/Vdisk.py | Vdisk.py |
"""
Auto-generated class for GetGW
"""
from .EnumGetGWStatus import EnumGetGWStatus
from .GWNIC import GWNIC
from .HTTPProxy import HTTPProxy
from .PortForward import PortForward
from . import client_support
class GetGW(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(domai... | 0-orchestrator | /0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/client/GetGW.py | GetGW.py |
End of preview. Expand in Data Studio
Dataset Card for "pypi_raw"
All of the latest package versions from pypi. The original data came from here. I pulled the latest versions of each package, then extracted only md, rst, ipynb, and py files. See other datasets for versions that have been cleaned and labeled.
- Downloads last month
- 294