schema_version int16 4 4 | source_id stringlengths 64 64 | unit_id stringlengths 64 64 | parent_unit_id stringlengths 64 64 ⌀ | package stringlengths 2 63 | path stringlengths 9 265 | filename stringlengths 4 90 | kind stringclasses 8
values | name stringlengths 1 121 | qualname stringlengths 1 193 | definition_path listlengths 1 10 | definition_ordinal int32 0 239 | start_line int32 1 45.3k | end_line int32 1 65.5k | start_column int32 0 48 | end_column int32 0 42.9k | is_async bool 2
classes | is_container bool 2
classes | signature_code stringlengths 14 10.3k ⌀ | decorators listlengths 0 65 | body_code stringlengths 0 956k | normalized_code stringlengths 0 956k | exact_hash stringlengths 64 64 ⌀ | isolated_hash stringlengths 64 64 ⌀ | header_hash stringlengths 64 64 ⌀ | body_hash stringlengths 64 64 ⌀ | container_hash stringlengths 64 64 ⌀ | enclosing_classes listlengths 0 6 | class_context listlengths 0 6 | referenced_imports listlengths 0 356 | free_names listlengths 0 445 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | null | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | module | <module> | <module> | [
"module"
] | 0 | 1 | 2,066 | 0 | 0 | false | true | null | [] | 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
logger = logging.getLogger('g8core')
class Timeout(Exception):
...
class JobNotFound(Exception):
...
class Return:
...
class Respo... | 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
logger = logging.getLogger('g8core')
class Timeout(Exception):
...
class JobNotFound(Exception):
...
class Return:
...
class Respo... | b8f4fa68479815671d6ebcb6091d5c6862c99c98bc6fbefa196e2315c5a0fd66 | 5143606ac1c097591ad39bd1c95b8943df3b8c8725a95fbba8a5af60545cbd38 | null | 2ebe621382739603565d80fca8c6740f3697eac7a1d20d70546720e82b2e7bb8 | 4a02138f19b46959410b4341d5f8105706554fd9fcafa1befe5dff05a6a2741e | [] | [] | [
{
"bound_name": "logging",
"qualified_name": "logging",
"statement": "import logging",
"line": 9
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 68cfa4d3d1d139de549c77c5d2efe6be10c058100d18618db2b473ed4a265980 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | Timeout | Timeout | [
"module",
"class:Timeout:0"
] | 0 | 19 | 20 | 0 | 8 | false | true | class Timeout(Exception):
...
| [] | pass
| class Timeout(Exception):
pass
| ba338b62c6cd1ca9fb2cd22c2c247b8c89e8df8768fa5e142dfeca3779ace2c6 | ba338b62c6cd1ca9fb2cd22c2c247b8c89e8df8768fa5e142dfeca3779ace2c6 | 96904f808a6a9b631bd6e5ec323aa8b02e99ac3cc2f12e981e55f8e65c3a1d19 | ac068729d98468a7b579c07c9caf82342507acd22145bcccf8d5aa9a696a979d | d21233b6f39bfc6cb247faf4daf246f7d324a735311fd6174be6dadd2ecab19e | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 46bbbe1c95ed89c16963de090e70beb22a9871eb134cae5ceacfc2b419db53d1 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | JobNotFound | JobNotFound | [
"module",
"class:JobNotFound:0"
] | 0 | 23 | 24 | 0 | 8 | false | true | class JobNotFound(Exception):
...
| [] | pass
| class JobNotFound(Exception):
pass
| 88dade39213fa6b42b1161144f9b762be249791ee80c08cc52921ed2de1abfd6 | 88dade39213fa6b42b1161144f9b762be249791ee80c08cc52921ed2de1abfd6 | 214921d7b17e66311f81e23523376c0b7e5a2bec3b2fd3364c2722c056b28a3e | ac068729d98468a7b579c07c9caf82342507acd22145bcccf8d5aa9a696a979d | dbe3f3fdf46bc70e6713ef0a74c6ce1b95514489d1b3a6cf938ea33d61fa7e5f | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | Return | Return | [
"module",
"class:Return:0"
] | 0 | 27 | 94 | 0 | 117 | false | true | class Return:
...
| [] | def __init__(self, payload):
...
@property
def payload(self):
...
@property
def id(self):
...
@property
def data(self):
...
@property
def level(self):
...
@property
def starttime(self):
...
@property
def time(self):
...
@property
def state(self):
...
@property
def stdout(self):
...
@... | class Return:
def __init__(self, payload):
...
@property
def payload(self):
...
@property
def id(self):
...
@property
def data(self):
...
@property
def level(self):
...
@property
def starttime(self):
...
@property
def ti... | 25d56cc18beff6e30bd03d134073bc2c10dcbf3333c43bbfc38aaba805cf07c5 | adc26af7e9fa732e5ebfcd251ef914e07a8d991df8de03ee49fb0c3a874d3299 | e786b1f544ac16c1ba944e16316b60e3283df0ded94159fe25631e0fe4a7212f | 53790b1106a3a748d67fcd541a191ef035db868ce27aa0c40ba86cf4423110c9 | a224f6b8484086f3be96664f753c047386faf985a41bf83c5b7acfb7d0514c0d | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 90ae7f5f95adeca6854f7bece67421ca841209da9459097f4ef65c7b64f1eb4a | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | Return.__init__ | [
"module",
"class:Return:0",
"method:__init__:0"
] | 0 | 29 | 30 | 4 | 31 | false | false | def __init__(self, payload):
...
| [] | self._payload = payload
| def __init__(self, payload):
self._payload = payload
| c7f4fed042c17e808e5f87f13297cdac7d92664ff9cf09374a1cfe9f17be2b31 | c7f4fed042c17e808e5f87f13297cdac7d92664ff9cf09374a1cfe9f17be2b31 | 293520a65514775aa490c08f018f62ac95553c06f863930b457872c255ac2a80 | eb262e502f34907a06c386dc1a59d0cc178a9bb2e489b22ccf04fdcc3f5d1dd3 | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | acdac4189d6d7e3db6143823a1f0dbb33cd2442d2a7be8e32ea81b3d8a6e2583 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | payload | Return.payload | [
"module",
"class:Return:0",
"method:payload:0"
] | 0 | 32 | 34 | 4 | 28 | false | false | @property
def payload(self):
...
| [
"property"
] | return self._payload
| @property
def payload(self):
return self._payload
| 0a00dfdb32a9e7413f3d6a5785343fc46de0b2d63e013958c82e0bf605e0f8cf | 0a00dfdb32a9e7413f3d6a5785343fc46de0b2d63e013958c82e0bf605e0f8cf | 62abcd55f2a5b3f4ed78f07e4aeec0f3562895cc70a4d3714dd496e6b8efef5d | 0662b664285cd17a0b0981a7b1f7c905019ba19912f9154f9ffcd10dad778b6a | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 971b0e503d398f1cad8b6adeb10d71f37ca624c8b1f269b7e866cc3244151962 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | id | Return.id | [
"module",
"class:Return:0",
"method:id:0"
] | 0 | 36 | 38 | 4 | 34 | false | false | @property
def id(self):
...
| [
"property"
] | return self._payload['id']
| @property
def id(self):
return self._payload['id']
| bb527101226ff3b2883c68e01007664e2f664ddcc9393fdac1f215fd86c37aa3 | bb527101226ff3b2883c68e01007664e2f664ddcc9393fdac1f215fd86c37aa3 | 7c49738fec988a157858a9d7510c359b9b2e68608ea5d4f97d931aa63dea8ddc | 6d1ec7df5b4cf8d929f71dfc96277b32e7e92d8c89690c1f8e41da1ad50d69f2 | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 6ec15af134bb674b063582780279c034fc69ddc273d2579a5d8258ec04d32559 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | data | Return.data | [
"module",
"class:Return:0",
"method:data:0"
] | 0 | 40 | 46 | 4 | 36 | false | false | @property
def data(self):
...
| [
"property"
] | """
data returned by the process. Only available if process
output data with the correct core level
"""
return self._payload['data']
| @property
def data(self):
"""
data returned by the process. Only available if process
output data with the correct core level
"""
return self._payload['data']
| 8b3082d8bbf6def22f96606e6a63baa628d134472ccf2405010c7679c3e71abc | 8b3082d8bbf6def22f96606e6a63baa628d134472ccf2405010c7679c3e71abc | 7dd8874835f6694f6fa74259bb7de1d00905354f56d65d1c4c94b4d84a181119 | 040d9de86d7d87ef4ad36efc34bad3733378df137cdaedc2596a34920e3c6d70 | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b449904239395c9ccafcd858f5ab61ec80a5ea82c233743e01fdcf6dc2cb8d9b | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | level | Return.level | [
"module",
"class:Return:0",
"method:level:0"
] | 0 | 48 | 51 | 4 | 37 | false | false | @property
def level(self):
...
| [
"property"
] | """data message level (if any)"""
return self._payload['level']
| @property
def level(self):
"""data message level (if any)"""
return self._payload['level']
| 6f73ef90a88fb3002d11edc9865b220da251543a3c8759c900c70a5ffe9b1ed7 | 6f73ef90a88fb3002d11edc9865b220da251543a3c8759c900c70a5ffe9b1ed7 | baa23eaef062cca2d5effa9c36ec5e49ec4f747b9b1f1cebf9a109df2ed9ba85 | d6012334a184c7cb599a16add1f20473ee15ca4789afdcc1777c0517bde0ed7b | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 6de003ebb5df8d666bd7c84b6ab123f3eb38fc1a95092633682c2c4fa05a66e5 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | starttime | Return.starttime | [
"module",
"class:Return:0",
"method:starttime:0"
] | 0 | 53 | 56 | 4 | 48 | false | false | @property
def starttime(self):
...
| [
"property"
] | """timestamp"""
return self._payload['starttime'] / 1000
| @property
def starttime(self):
"""timestamp"""
return self._payload['starttime'] / 1000
| 0afbab8aaeca485b4e9acb28d00e42a23775fa4ab517153a6f9b731a34d7eb4e | 0afbab8aaeca485b4e9acb28d00e42a23775fa4ab517153a6f9b731a34d7eb4e | c514173f8c3f8673ce03d65c3e9aa2c14753c853e72b90716c770538cf8dbdb0 | 5e9c4487c6018e5b22809a92649e77d4e691ee6547f34d69606b27b67daedab6 | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 8070296f173894b2f8186dddca160a764b84d102782a933a5f668043f5e85e4e | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | time | Return.time | [
"module",
"class:Return:0",
"method:time:0"
] | 0 | 58 | 61 | 4 | 36 | false | false | @property
def time(self):
...
| [
"property"
] | """execution time in millisecond"""
return self._payload['time']
| @property
def time(self):
"""execution time in millisecond"""
return self._payload['time']
| c01db7e9ceaba4eba498e9e80c6a6f08648231fc0b168709973c2ed640347ec7 | c01db7e9ceaba4eba498e9e80c6a6f08648231fc0b168709973c2ed640347ec7 | d23268abdc913fd8082836ed38169ed4cfe5741557c55d88d9159eb8544e8e86 | 2b1fb7818241f164a9c0098c3fbd2e09d57bbb08763634a011ae6736938b1d9f | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 629ab5f8193f91b0f51d4d59061ec6f05ef2fbd6614fff3f53520d7599169cd0 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | state | Return.state | [
"module",
"class:Return:0",
"method:state:0"
] | 0 | 63 | 68 | 4 | 37 | false | false | @property
def state(self):
...
| [
"property"
] | """
exit state
"""
return self._payload['state']
| @property
def state(self):
"""
exit state
"""
return self._payload['state']
| 24c4bae0f5d2ab2159fbeedc0d22e2940d4638872a800cd77354f07d56d3b522 | 24c4bae0f5d2ab2159fbeedc0d22e2940d4638872a800cd77354f07d56d3b522 | 194ad4872691fceb54a047dcbfdeb0f1c9ae16bcb16c898bc04f974713f063ee | 50a99c1f3399d291b8d4d8722a9d01fdcdb40ad5a3d3385a84897cda8165bd4a | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 317a014403979563d8173ebbe797d2342cadcf3d76443f2d20c5364c9d3083e5 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | stdout | Return.stdout | [
"module",
"class:Return:0",
"method:stdout:0"
] | 0 | 70 | 73 | 4 | 78 | false | false | @property
def stdout(self):
...
| [
"property"
] | streams = self._payload.get('streams', None)
return streams[0] if streams is not None and len(streams) >= 1 else ''
| @property
def stdout(self):
streams = self._payload.get('streams', None)
return streams[0] if streams is not None and len(streams) >= 1 else ''
| a9ba36f4ae55ceea77c66fd4b38cf3230ac04da131a790fc15120a6f0683eff2 | a9ba36f4ae55ceea77c66fd4b38cf3230ac04da131a790fc15120a6f0683eff2 | 3b9eb0b376844ff6ed045339be8641b165dde09ffefad54f7c9ba6e33f1d43e9 | 6f3f72d0ab2319c8c889008fce70ad51fc4ecc122b008fec9c46540550d07b0b | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 9cd139eeb00444d5e26ae35437ee1e65c5f5a46f96eb6be1e71471391c5d8972 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | stderr | Return.stderr | [
"module",
"class:Return:0",
"method:stderr:0"
] | 0 | 75 | 78 | 4 | 78 | false | false | @property
def stderr(self):
...
| [
"property"
] | streams = self._payload.get('streams', None)
return streams[1] if streams is not None and len(streams) >= 2 else ''
| @property
def stderr(self):
streams = self._payload.get('streams', None)
return streams[1] if streams is not None and len(streams) >= 2 else ''
| 180a6749b0b1a4e3468d6bf67e40293293cc8bc932dcef7ec6afabb4edfe8430 | 180a6749b0b1a4e3468d6bf67e40293293cc8bc932dcef7ec6afabb4edfe8430 | 64cb72396d7e40d7c2c5ea1d215d4db809fd16a0c3769d3600e39b697a6a53a7 | 6146b0d5af33b6bff9752f52ea66369dd44b06492fb2f256cc7c8a25df5938fe | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 44c6c46401646da84d679370ee558fb32ee83dd336dadc281525a8a9b1fd5592 | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __repr__ | Return.__repr__ | [
"module",
"class:Return:0",
"method:__repr__:0"
] | 0 | 80 | 81 | 4 | 24 | false | false | def __repr__(self):
...
| [] | return str(self)
| def __repr__(self):
return str(self)
| c611b6b0f9a056ccfcf5421bda82bc4c82fabbe683db278eec98734942e337f2 | c611b6b0f9a056ccfcf5421bda82bc4c82fabbe683db278eec98734942e337f2 | c667b0d44f1af3f25242d7d347dbbece70d05962e30dd9f82102d499634fd4e7 | e648623ac78c05fd5fc54e26220ace2fa3170013a441485332b34ec5a4152927 | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 6c62d47ed4ad62b62e71106f45719c40e1ba6ee6a6ac7d459987dbde09be9b6a | 79c29b82aeca51dab582a58dcfa5d0626d1046d462b4eb55b7f7e608b56a301f | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __str__ | Return.__str__ | [
"module",
"class:Return:0",
"method:__str__:0"
] | 0 | 83 | 94 | 4 | 117 | false | false | def __str__(self):
...
| [] | tmpl = """\
STATE: {state}
STDOUT:
{stdout}
STDERR:
{stderr}
DATA:
{data}
"""
return textwrap.dedent(tmpl).format(state=self.state, stdout=self.stdout, stderr=self.stderr, data=self.data)
| def __str__(self):
tmpl = """\
STATE: {state}
STDOUT:
{stdout}
STDERR:
{stderr}
DATA:
{data}
"""
return textwrap.dedent(tmpl).format(state=self.state, stdout=self.stdout, stderr=self.stderr, data=self.data)
| 3cb566651f6a7ee3063b20980bd2761498de1f1677a7a0445ba431b9e278d71d | 3cb566651f6a7ee3063b20980bd2761498de1f1677a7a0445ba431b9e278d71d | a29433ab2ae4d63105a7d3e12739d1736fff9395ce913044ff29a6e91ab8fadd | 820866537a754c927079fcf98e0c23befae293099155c7048a9f3683d591185e | null | [
"Return"
] | [
"class Return:\n ...\n"
] | [
{
"bound_name": "textwrap",
"qualified_name": "textwrap",
"statement": "import textwrap",
"line": 4
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | cff3039153c4c3739134c9caba01e0929d90f51551b762944637ae0055e3bdb5 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | Response | Response | [
"module",
"class:Response:0"
] | 0 | 97 | 132 | 0 | 23 | false | true | class Response:
...
| [] | def __init__(self, client, id):
...
@property
def id(self):
...
@property
def exists(self):
...
def get(self, timeout=None):
...
| class Response:
def __init__(self, client, id):
...
@property
def id(self):
...
@property
def exists(self):
...
def get(self, timeout=None):
...
| d4d87dad114ded200dc13600f62eddd75f2e712d2aec150142f91831f1281b1b | 51b8363bcfe91c0f8d80aa84217319f77ae1d9c51ad5e3e4d2079b23623b70f0 | 322ea0c09e58cdff068a7a1866917c77f739d49e5445e67978904ca4b9a84842 | 368d84599d4ccee38349eb718c315ad9e66653fe54bcc99a99eac984b9a96e07 | 3e46559b1c2e01094769d7e54e502c6f231358efdf13159733dc26924a0ca949 | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b168e6d0ac10cda0598fb0ade4b50685f0d85a80ab1588792c69f722d66c30fa | cff3039153c4c3739134c9caba01e0929d90f51551b762944637ae0055e3bdb5 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | Response.__init__ | [
"module",
"class:Response:0",
"method:__init__:0"
] | 0 | 99 | 102 | 4 | 44 | false | false | def __init__(self, client, id):
...
| [] | self._client = client
self._id = id
self._queue = 'result:{}'.format(id)
| def __init__(self, client, id):
self._client = client
self._id = id
self._queue = 'result:{}'.format(id)
| 5d0ba61caca37c3b0a098393794ff2f59884a1e78b58768a47ff282b076a38af | 5d0ba61caca37c3b0a098393794ff2f59884a1e78b58768a47ff282b076a38af | 67a163cc76bdb9810f536f49f07fec944f315ab4677ebb49c48dea5f1bcf90a6 | 5d4432213fd657ffcce716104a5c126f0a97b9ac02d85b85994e247b6e95899b | null | [
"Response"
] | [
"class Response:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | c2f62207f2b53d2d264bae3ca77f12315e1986aee1082e29e7d2c10a9eb05e59 | cff3039153c4c3739134c9caba01e0929d90f51551b762944637ae0055e3bdb5 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | id | Response.id | [
"module",
"class:Response:0",
"method:id:0"
] | 0 | 104 | 106 | 4 | 23 | false | false | @property
def id(self):
...
| [
"property"
] | return self._id
| @property
def id(self):
return self._id
| f0409f693eb2f8cf39c9510ffa751abcec70a2b50f347f53e4e5ade29ed9b396 | f0409f693eb2f8cf39c9510ffa751abcec70a2b50f347f53e4e5ade29ed9b396 | 7c49738fec988a157858a9d7510c359b9b2e68608ea5d4f97d931aa63dea8ddc | 59de22fa3b48003fb113ea3e6e4b46b73f92bd515babc51a8859b264ecd4b84c | null | [
"Response"
] | [
"class Response:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 511fc856a083533d827c068639f236dc0b408b3842d81d6f4a833e84839c2dcd | cff3039153c4c3739134c9caba01e0929d90f51551b762944637ae0055e3bdb5 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | exists | Response.exists | [
"module",
"class:Response:0",
"method:exists:0"
] | 0 | 108 | 112 | 4 | 50 | false | false | @property
def exists(self):
...
| [
"property"
] | r = self._client._redis
flag = '{}:flag'.format(self._queue)
return r.rpoplpush(flag, flag) is not None
| @property
def exists(self):
r = self._client._redis
flag = '{}:flag'.format(self._queue)
return r.rpoplpush(flag, flag) is not None
| f0c7203c41ce3d17e9fd4d8d8f71063e7d4207c590fb0e28e83607b7a06f5bde | f0c7203c41ce3d17e9fd4d8d8f71063e7d4207c590fb0e28e83607b7a06f5bde | a4c3c4cb98b2320fdc9afe8618fdd5f38a524ba3849b08cf80036e81472bf67a | 2486aa1ad57281a4b8497918ef65429990234c488630aae379073b42ed8b4910 | null | [
"Response"
] | [
"class Response:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 779ad555e3b1d9df2adc70fce769ce89fee8178c14cbcee34f76d8a26f96d12a | cff3039153c4c3739134c9caba01e0929d90f51551b762944637ae0055e3bdb5 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | get | Response.get | [
"module",
"class:Response:0",
"method:get:0"
] | 0 | 114 | 132 | 4 | 23 | false | false | def get(self, timeout=None):
...
| [] | if timeout is None:
timeout = self._client.timeout
r = self._client._redis
start = time.time()
maxwait = timeout
while maxwait > 0:
if not self.exists:
raise JobNotFound(self.id)
v = r.brpoplpush(self._queue, self._queue, 10)
if v is not None:
payload = json.loads(v.decode())
r =... | def get(self, timeout=None):
if timeout is None:
timeout = self._client.timeout
r = self._client._redis
start = time.time()
maxwait = timeout
while maxwait > 0:
if not self.exists:
raise JobNotFound(self.id)
v = r.brpoplpush(self._queue, self._queue, 10)
i... | a8bfc9dfaf56895d9459ac1351c1c6d16073f99e6061e3267292ce9623a29e73 | a8bfc9dfaf56895d9459ac1351c1c6d16073f99e6061e3267292ce9623a29e73 | 55d0b701821f0ea9b8d42831681653dc87f486a90c21cea9ce5cb0f715421acc | 2532542accea500c5fa43785c2cadeb74b09207714dfe8c30e3cfb687eaf1c41 | null | [
"Response"
] | [
"class Response:\n ...\n"
] | [
{
"bound_name": "json",
"qualified_name": "json",
"statement": "import json",
"line": 3
},
{
"bound_name": "time",
"qualified_name": "time",
"statement": "import time",
"line": 10
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | InfoManager | InfoManager | [
"module",
"class:InfoManager:0"
] | 0 | 135 | 159 | 0 | 52 | false | true | class InfoManager:
...
| [] | def __init__(self, client):
...
def cpu(self):
...
def nic(self):
...
def mem(self):
...
def disk(self):
...
def os(self):
...
def port(self):
...
def version(self):
...
| class InfoManager:
def __init__(self, client):
...
def cpu(self):
...
def nic(self):
...
def mem(self):
...
def disk(self):
...
def os(self):
...
def port(self):
...
def version(self):
...
| f6758b99233ea4aa5fb74a10e73ea3c8c0a2bc654b367b9516ac38e266193849 | 28e273ec2bf23812abb687667c7e8ad843649636908b80d367f575ba1f39a8bb | 00305441aad72a7b506432fc91c042ef29473fecb36f7b68b74dea23a2c847f0 | 5f631796e051710adfedb7e4f88a35601ca1c42c04dcf5ee56d2e6c2ae86bd49 | 730a44edfdb9e9b2e1d609fdc1bdd991929c39fa18c777b2aab2951f91424654 | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | a3a8ca3d319f6f510635cdfaefc20cab63e27631fcc329e7f4304b050e8d9803 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | InfoManager.__init__ | [
"module",
"class:InfoManager:0",
"method:__init__:0"
] | 0 | 137 | 138 | 4 | 29 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | fadd1901bead3882cd1b99ac139fb4b3e5791002686a78810771fd4fe8af05d8 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | cpu | InfoManager.cpu | [
"module",
"class:InfoManager:0",
"method:cpu:0"
] | 0 | 140 | 141 | 4 | 48 | false | false | def cpu(self):
...
| [] | return self._client.json('info.cpu', {})
| def cpu(self):
return self._client.json('info.cpu', {})
| 510b6fc89890d22537f5565a4654c60897099d36a214ea77b0e27b067abc3bb9 | 510b6fc89890d22537f5565a4654c60897099d36a214ea77b0e27b067abc3bb9 | fb025c65eecc7acf989db1dfe7aabf9fb9c677e17f43aac43ba2ab711dbdb035 | 67d45472eac86ed8c0f57cacade93b7a841342cf9056c34c5a0b78a70798ed0d | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 47015a3036f9df71566d2c071084349665afc7c38848b172f26813ac1d6ddaf3 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | nic | InfoManager.nic | [
"module",
"class:InfoManager:0",
"method:nic:0"
] | 0 | 143 | 144 | 4 | 48 | false | false | def nic(self):
...
| [] | return self._client.json('info.nic', {})
| def nic(self):
return self._client.json('info.nic', {})
| 3dd860311b653ea0a4975fa09e49c1721bdd486dd37f5f52db0a45fd6926b1c1 | 3dd860311b653ea0a4975fa09e49c1721bdd486dd37f5f52db0a45fd6926b1c1 | 2ebb68b29183b24c8072ee5142bad617cbc6100587b6f0a662a4d8d7cb0b99cb | 3fd68bc75a234066a1d55fdf0f0b8bac34f6ec34b87afc5d61ede2d0c8ba8019 | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 58bf7657fdaf7caa867945eceec8b914d508531801263e719d37df6cc5d8b68c | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | mem | InfoManager.mem | [
"module",
"class:InfoManager:0",
"method:mem:0"
] | 0 | 146 | 147 | 4 | 48 | false | false | def mem(self):
...
| [] | return self._client.json('info.mem', {})
| def mem(self):
return self._client.json('info.mem', {})
| 7516acd927edd6c7ef5e4f862dd506e10f8ecedf03e648d4d0246be6d9410486 | 7516acd927edd6c7ef5e4f862dd506e10f8ecedf03e648d4d0246be6d9410486 | e7e1432fb64e0eef7f156c1df8c606319708b9ae6c85db088b73bd89f5ee8edb | 896eb72ae2c0e800e8e5afe48d5159f0ef17e382ef9c395f4c277a46542696db | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 20ef679fa28f375d5b2c39834b3996f2a02f9f866eafaeb1554759376af9b9c6 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | disk | InfoManager.disk | [
"module",
"class:InfoManager:0",
"method:disk:0"
] | 0 | 149 | 150 | 4 | 49 | false | false | def disk(self):
...
| [] | return self._client.json('info.disk', {})
| def disk(self):
return self._client.json('info.disk', {})
| bf25f04e6a5d23f05b66861a995b074f66ac1fdce01138828572db141fec34e9 | bf25f04e6a5d23f05b66861a995b074f66ac1fdce01138828572db141fec34e9 | 58b07b146cfb2c8abf7351549c0d38e32b1277a4584c6e64d241c205c8d836e2 | 99aca8a51d2ebb20389a42604cf47149922a845fcaf6887f844c4ac25ff14c90 | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 59a56c5335ae7edef6fd3a6bb99300993ba44507945395ea38f74a8149a44669 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | os | InfoManager.os | [
"module",
"class:InfoManager:0",
"method:os:0"
] | 0 | 152 | 153 | 4 | 47 | false | false | def os(self):
...
| [] | return self._client.json('info.os', {})
| def os(self):
return self._client.json('info.os', {})
| 0d6973dbc4454c790a433a47a078c39cd8d03c00d781e8864c2e89eb615d3e72 | 0d6973dbc4454c790a433a47a078c39cd8d03c00d781e8864c2e89eb615d3e72 | 769615230f9f05b76ba3a5e689fe8b78478882cb6b70199de0106e51ecf5cc8d | ca59a8de5eeb3b63b4ae98cff25d45ebf390eca1bbbbb4a29a9cc50baafef4e3 | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 7689ad3bcbacd5021913cb926d3c5e4b44fe55c2ce37ea9c2e3d85d9371ca3e3 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | port | InfoManager.port | [
"module",
"class:InfoManager:0",
"method:port:0"
] | 0 | 155 | 156 | 4 | 49 | false | false | def port(self):
...
| [] | return self._client.json('info.port', {})
| def port(self):
return self._client.json('info.port', {})
| 0fc5347a2f4b212bd92af5f6154268ac5fb10993d50fed7894d997331309fa65 | 0fc5347a2f4b212bd92af5f6154268ac5fb10993d50fed7894d997331309fa65 | b411537eb974324b0fecd1dc549ebfdda5aac87ea71bd2e085a01eabc67deea6 | 36bfe55c417bbe9c42484614d61668c0bfe8fb83946fd3a078abd99c00ee8779 | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 6c2594356494ec6e7cb3f5198836d5a9763105d2d862ccacf5000dc06cb73298 | 34fc6a50a5ed74542294ceea0cd6f86025eb68b4a7ed84793ad4b1fe5fa24962 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | version | InfoManager.version | [
"module",
"class:InfoManager:0",
"method:version:0"
] | 0 | 158 | 159 | 4 | 52 | false | false | def version(self):
...
| [] | return self._client.json('info.version', {})
| def version(self):
return self._client.json('info.version', {})
| 3fab5192b039ddde4984acf70795bb25a0c3b4fae7d53b83fa9fb42729af9ae4 | 3fab5192b039ddde4984acf70795bb25a0c3b4fae7d53b83fa9fb42729af9ae4 | 8b1e4b6758a399514041579bf1bf8dd1294b312c1dd7b7dc0883f565f51955ee | 2ec7999178e98196b09dd7ce7154c97676e2607d10a84a52e4301bfb56a98314 | null | [
"InfoManager"
] | [
"class InfoManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 497e3705010da6fa2e66bd26f9f0fa80813721707aeb7b210f1534ce83b5f59c | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | JobManager | JobManager | [
"module",
"class:JobManager:0"
] | 0 | 162 | 198 | 0 | 50 | false | true | class JobManager:
...
| [] | _job_chk = typchk.Checker({
'id': str,
})
_kill_chk = typchk.Checker({
'id': str,
'signal': int,
})
def __init__(self, client):
...
def list(self, id=None):
...
def kill(self, id, signal=signal.SIGTERM):
...
| class JobManager:
_job_chk = typchk.Checker({
'id': str,
})
_kill_chk = typchk.Checker({
'id': str,
'signal': int,
})
def __init__(self, client):
...
def list(self, id=None):
...
def kill(self, id, signal=signal.SIGTERM):
...
| 484489343e080033bfc7f65786ff73e620fa9630463b1e5567155000b86e75aa | 87f564b12e2771c8bc074d5da8c07c611eba1c6c260eb5de1f57372050988724 | b8d806160fd6ef406019312e619dc892db665fe87ba2f8c59af0c2dcb31e8494 | b7e6813235cce5e2481e7ecac60d5fe0eb34776d3299dbb2c210049fd91afb32 | b51616c4aa9987f0d0fbd9a88d33c510048192da63aa519391cc996b3a82621e | [] | [] | [
{
"bound_name": "typchk",
"qualified_name": ".typchk",
"statement": "from . import typchk",
"line": 11
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 1af5ace79cf829aa205c89f3712e50ac0146f390fd242b80aae8ef0a4b9e2c0f | 497e3705010da6fa2e66bd26f9f0fa80813721707aeb7b210f1534ce83b5f59c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | JobManager.__init__ | [
"module",
"class:JobManager:0",
"method:__init__:0"
] | 0 | 172 | 173 | 4 | 29 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"JobManager"
] | [
"class JobManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | abc34d299bf24455705727f92db160c0d062011244afad1ed5a9fc3d917dda1d | 497e3705010da6fa2e66bd26f9f0fa80813721707aeb7b210f1534ce83b5f59c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | list | JobManager.list | [
"module",
"class:JobManager:0",
"method:list:0"
] | 0 | 175 | 183 | 4 | 50 | false | false | def list(self, id=None):
...
| [] | """
List all running jobs
:param id: optional ID for the job to list
"""
args = {'id': id}
self._job_chk.check(args)
return self._client.json('job.list', args)
| def list(self, id=None):
"""
List all running jobs
:param id: optional ID for the job to list
"""
args = {'id': id}
self._job_chk.check(args)
return self._client.json('job.list', args)
| 17ebf6f8ccce40dcf24888530fa9f83389967a7c2f06190f61ee03cf644e827b | 17ebf6f8ccce40dcf24888530fa9f83389967a7c2f06190f61ee03cf644e827b | 14718af858443b4f34dc56bd573598b4fec0ee9cbe00030aff9a32785cae4b3e | 52c949d8458db53a13c9ea7cb79d2cdeafd872fde1707330a3d6e01b7c330858 | null | [
"JobManager"
] | [
"class JobManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 1ca0179f82dc05a6cc3ba6e7e91b406db19e87f969c0cbd51a42da9a14698484 | 497e3705010da6fa2e66bd26f9f0fa80813721707aeb7b210f1534ce83b5f59c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | kill | JobManager.kill | [
"module",
"class:JobManager:0",
"method:kill:0"
] | 0 | 185 | 198 | 4 | 50 | false | false | def kill(self, id, signal=signal.SIGTERM):
...
| [] | """
Kill a job with given id
:WARNING: beware of what u kill, if u killed redis for example core0 or coreX won't be reachable
:param id: job id to kill
"""
args = {
'id': id,
'signal': int(signal),
}
self._kill_chk.check(args)
return self._client.json('job.kill', args)
| def kill(self, id, signal=signal.SIGTERM):
"""
Kill a job with given id
:WARNING: beware of what u kill, if u killed redis for example core0 or coreX won't be reachable
:param id: job id to kill
"""
args = {
'id': id,
'signal': int(signal),
}
self._kill_... | d50ba49cb7cfccaa6dccb4718b0c51b326a0fbc810f048c33aef71b686c46620 | d50ba49cb7cfccaa6dccb4718b0c51b326a0fbc810f048c33aef71b686c46620 | 1237cf45ba7d374f52214a1cbefb0bf20930b0a2d068683aab449bfbadba8273 | a9ee8928d4182fb79628ae3b9e3dcfa7eda458bdd135534fcffba7e488d0d320 | null | [
"JobManager"
] | [
"class JobManager:\n ...\n"
] | [
{
"bound_name": "signal",
"qualified_name": "signal",
"statement": "import signal",
"line": 7
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | e5500223c52da4dec17fb0beee54ae40d0d97b6810a4667f9d9be812397ee3f6 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | ProcessManager | ProcessManager | [
"module",
"class:ProcessManager:0"
] | 0 | 201 | 237 | 0 | 54 | false | true | class ProcessManager:
...
| [] | _process_chk = typchk.Checker({
'pid': int,
})
_kill_chk = typchk.Checker({
'pid': int,
'signal': int,
})
def __init__(self, client):
...
def list(self, id=None):
...
def kill(self, pid, signal=signal.SIGTERM):
...
| class ProcessManager:
_process_chk = typchk.Checker({
'pid': int,
})
_kill_chk = typchk.Checker({
'pid': int,
'signal': int,
})
def __init__(self, client):
...
def list(self, id=None):
...
def kill(self, pid, signal=signal.SIGTERM):
...
| df82bdc6201b196a1112e61a18b981103c1c83f803614719f270bb25f44b9ed7 | e6c5cff685903bbf4d0f035c44bd380682e86147c1f17610ed3b37cd16f323fa | 99757f9eda46882f8fc499d9349cd197852f82687da12f9d730ca36231b14201 | 7822880824c3e73064e9d5f84c23556298ab64a1442f652bc05d1294926d02d4 | 0e710894e33cdfdd2c8e8f632cdc47a907a308015257b2af0adb9afb1889767a | [] | [] | [
{
"bound_name": "typchk",
"qualified_name": ".typchk",
"statement": "from . import typchk",
"line": 11
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 599ba1ce0d557349d088c90170f591324abab4bce300170c68de474df6cd4e31 | e5500223c52da4dec17fb0beee54ae40d0d97b6810a4667f9d9be812397ee3f6 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | ProcessManager.__init__ | [
"module",
"class:ProcessManager:0",
"method:__init__:0"
] | 0 | 211 | 212 | 4 | 29 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"ProcessManager"
] | [
"class ProcessManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 5f7e64900509233f357e367d3b1fd3f5112bd06df0012ecfef635b46d8703752 | e5500223c52da4dec17fb0beee54ae40d0d97b6810a4667f9d9be812397ee3f6 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | list | ProcessManager.list | [
"module",
"class:ProcessManager:0",
"method:list:0"
] | 0 | 214 | 222 | 4 | 54 | false | false | def list(self, id=None):
...
| [] | """
List all running processes
:param id: optional PID for the process to list
"""
args = {'pid': id}
self._process_chk.check(args)
return self._client.json('process.list', args)
| def list(self, id=None):
"""
List all running processes
:param id: optional PID for the process to list
"""
args = {'pid': id}
self._process_chk.check(args)
return self._client.json('process.list', args)
| 38979cc42357173c921f2156cd3b6e407f18e0ccff59f9fe03ef87ea391dc9d2 | 38979cc42357173c921f2156cd3b6e407f18e0ccff59f9fe03ef87ea391dc9d2 | 14718af858443b4f34dc56bd573598b4fec0ee9cbe00030aff9a32785cae4b3e | 6b6c57b74a91f4fd9ab2a2f94bc9672924359db5886258fdc9ec18e65cd6d17b | null | [
"ProcessManager"
] | [
"class ProcessManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | efec5f30c508b210eb01eed373041c16e329ff07afefdbb928525fc5800cef2a | e5500223c52da4dec17fb0beee54ae40d0d97b6810a4667f9d9be812397ee3f6 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | kill | ProcessManager.kill | [
"module",
"class:ProcessManager:0",
"method:kill:0"
] | 0 | 224 | 237 | 4 | 54 | false | false | def kill(self, pid, signal=signal.SIGTERM):
...
| [] | """
Kill a process with given pid
:WARNING: beware of what u kill, if u killed redis for example core0 or coreX won't be reachable
:param pid: PID to kill
"""
args = {
'pid': pid,
'signal': int(signal),
}
self._kill_chk.check(args)
return self._client.json('process.kill', args)
| def kill(self, pid, signal=signal.SIGTERM):
"""
Kill a process with given pid
:WARNING: beware of what u kill, if u killed redis for example core0 or coreX won't be reachable
:param pid: PID to kill
"""
args = {
'pid': pid,
'signal': int(signal),
}
self.... | 6ac8f47b75e005e19495a4f6bc6d3ba1ac16c182705382aab8e4dae574b4cabc | 6ac8f47b75e005e19495a4f6bc6d3ba1ac16c182705382aab8e4dae574b4cabc | b2f110168c1384a5c69cdb99880b9b378b98b82f27e57c54254a65c71a81e498 | f56114cbb916627cfda63103d02576d2b6372978806dcb7339d578dad967f55c | null | [
"ProcessManager"
] | [
"class ProcessManager:\n ...\n"
] | [
{
"bound_name": "signal",
"qualified_name": "signal",
"statement": "import signal",
"line": 7
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | FilesystemManager | FilesystemManager | [
"module",
"class:FilesystemManager:0"
] | 0 | 240 | 463 | 0 | 35 | false | true | class FilesystemManager:
...
| [] | def __init__(self, client):
...
def open(self, file, mode='r', perm=0o0644):
...
def exists(self, path):
...
def list(self, path):
...
def mkdir(self, path):
...
def remove(self, path):
...
def move(self, path, destination):
...
def chmod(self, path, mode, recursive=False):
...
def chown... | class FilesystemManager:
def __init__(self, client):
...
def open(self, file, mode='r', perm=0o0644):
...
def exists(self, path):
...
def list(self, path):
...
def mkdir(self, path):
...
def remove(self, path):
...
def move(self, path, destinat... | 573f153dc4e208a40587f8d9c65093d323aba14aff48dc41c3d32207aaea9346 | fda31132cc73986a8618cd773fc328bc887d529363a1b794948dc3f754a576ba | ddd7fbfdc1bb64a98a103f0a2d1333f47e46599b9708b4b75b5c9863538e65dd | 98f12b08263979c0fcc89c6fe3fff4889db280496a8c113d1e152c4e75bfbda8 | a00c316f4d1b09329374a5a1dbf2e1e80a98defe74be9f35e61b74cbb901d436 | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | dd00c4582ac5489878f41a0b84b0a7c0bee79222de658c51ddbde8d5eeebedaf | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | FilesystemManager.__init__ | [
"module",
"class:FilesystemManager:0",
"method:__init__:0"
] | 0 | 242 | 243 | 4 | 29 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b6ee5f6055b23ec5838b0417db2c72604628895ec310ea6a1d6ed8574f100b0f | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | open | FilesystemManager.open | [
"module",
"class:FilesystemManager:0",
"method:open:0"
] | 0 | 245 | 267 | 4 | 57 | false | false | def open(self, file, mode='r', perm=0o0644):
...
| [] | """
Opens a file on the node
:param file: file path to open
:param mode: open mode
:param perm: file permission in octet form
mode:
'r' read only
'w' write only (truncate)
'+' read/write
'x' create if not exist
'a' append
:return: a file descriptor
"""
args = ... | def open(self, file, mode='r', perm=0o0644):
"""
Opens a file on the node
:param file: file path to open
:param mode: open mode
:param perm: file permission in octet form
mode:
'r' read only
'w' write only (truncate)
'+' read/write
'x... | 2be83595bff273d58a1744a8731fa9a10519d2e4c54bbb53b0462174197ca169 | 2be83595bff273d58a1744a8731fa9a10519d2e4c54bbb53b0462174197ca169 | e5e258969b1df7ffae19d2c8d4688b9c34015db722d59eee7579265f68c32dd5 | 6ef32b0fd06fd9178d3217821419a049f3477554daf605bbb0501d7c16edde9b | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 26dc3d3402aa572c10a2733953c42d8f466b5f0a963aaeb81be9f68f9c6a82c0 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | exists | FilesystemManager.exists | [
"module",
"class:FilesystemManager:0",
"method:exists:0"
] | 0 | 269 | 280 | 4 | 59 | false | false | def exists(self, path):
...
| [] | """
Check if path exists
:param path: path to file/dir
:return: boolean
"""
args = {
'path': path,
}
return self._client.json('filesystem.exists', args)
| def exists(self, path):
"""
Check if path exists
:param path: path to file/dir
:return: boolean
"""
args = {
'path': path,
}
return self._client.json('filesystem.exists', args)
| a50ccb508b6bb91eeabc8dca42410267b0c11be19d208c4c78f380eb7f895e90 | a50ccb508b6bb91eeabc8dca42410267b0c11be19d208c4c78f380eb7f895e90 | a74f6ffddc9be79ddd7aa8bca4844a8bda1577dca3dd81a031c13e0d574e2c17 | 92451209062692d50c862b81dd8648dd94ffe4fa9f9eb0792592a5927a44363a | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 12bdfacb563a73a22a72913dc2462c7a3b03983bba911df464c25105b98f1e8e | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | list | FilesystemManager.list | [
"module",
"class:FilesystemManager:0",
"method:list:0"
] | 0 | 282 | 292 | 4 | 57 | false | false | def list(self, path):
...
| [] | """
List all entries in directory
:param path: path to dir
:return: list of director entries
"""
args = {
'path': path,
}
return self._client.json('filesystem.list', args)
| def list(self, path):
"""
List all entries in directory
:param path: path to dir
:return: list of director entries
"""
args = {
'path': path,
}
return self._client.json('filesystem.list', args)
| 0a8d3966bfb324d1257ecc0b345b3fd00fdcca3e8b92bf376da4b0835389e22e | 0a8d3966bfb324d1257ecc0b345b3fd00fdcca3e8b92bf376da4b0835389e22e | 737441fdc6f0c0d05873ac59b4f5f14490947519512d026f2d107ab0d0845972 | f95b21b997faed737002f0e9a016b8cd69931210bb5481e7d3068cf8ead3f8f4 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | e63480ea8d3d3338c85d908641429a0bb6113d4e0fa39b0bebfd26dd2f25639e | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | mkdir | FilesystemManager.mkdir | [
"module",
"class:FilesystemManager:0",
"method:mkdir:0"
] | 0 | 294 | 304 | 4 | 58 | false | false | def mkdir(self, path):
...
| [] | """
Make a new directory == mkdir -p path
:param path: path to directory to create
:return:
"""
args = {
'path': path,
}
return self._client.json('filesystem.mkdir', args)
| def mkdir(self, path):
"""
Make a new directory == mkdir -p path
:param path: path to directory to create
:return:
"""
args = {
'path': path,
}
return self._client.json('filesystem.mkdir', args)
| 2c8a92aa5dca0a91fd6413bc944755968ab10a0f75beefa4555b5051b777630e | 2c8a92aa5dca0a91fd6413bc944755968ab10a0f75beefa4555b5051b777630e | 5476695cba9c37ec44c77e8dc8bd01affb2659676cc21c0f55219de46685cb04 | adff2414c4d6fb50453505759f8b6690659e39324b7b63ba16972ff6de1b5eb4 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b1c8d6a0d353173a650bad9e98da4ac70d99de0a1bdc13dd190195c478dd1dd9 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | remove | FilesystemManager.remove | [
"module",
"class:FilesystemManager:0",
"method:remove:0"
] | 0 | 306 | 317 | 4 | 59 | false | false | def remove(self, path):
...
| [] | """
Removes a path (recursively)
:param path: path to remove
:return:
"""
args = {
'path': path,
}
return self._client.json('filesystem.remove', args)
| def remove(self, path):
"""
Removes a path (recursively)
:param path: path to remove
:return:
"""
args = {
'path': path,
}
return self._client.json('filesystem.remove', args)
| 21a2ff34844fd7589ca727298372fa137a9cb039a38e87c8a4f0971d9c926cb3 | 21a2ff34844fd7589ca727298372fa137a9cb039a38e87c8a4f0971d9c926cb3 | d0f0fbf532b503da3a1d92e480c3ebddf6cd392ddaf204e86b5fa068b6e84f83 | b686fa1dd27d1af39fb6153de120acda854caeac74f0570eb507f9ac6dc9cbd9 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 752883fd540db3e5be8462a7f05e123ea138afd97f748cab21722502454f1736 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | move | FilesystemManager.move | [
"module",
"class:FilesystemManager:0",
"method:move:0"
] | 0 | 319 | 332 | 4 | 57 | false | false | def move(self, path, destination):
...
| [] | """
Move a path to destination
:param path: source
:param destination: destination
:return:
"""
args = {
'path': path,
'destination': destination,
}
return self._client.json('filesystem.move', args)
| def move(self, path, destination):
"""
Move a path to destination
:param path: source
:param destination: destination
:return:
"""
args = {
'path': path,
'destination': destination,
}
return self._client.json('filesystem.move', args)
| c165bcb411a346a25f63a0f13a7e1df55757234eb52f16862ae67f2d1cd2536d | c165bcb411a346a25f63a0f13a7e1df55757234eb52f16862ae67f2d1cd2536d | a08d66424b42a72a184809554ca6461900d11d2e09b594f599cee6c5059c90e1 | d9536a3d5d6ccbba221e5d6ca62a78eb61955d119824da5092501751c8c8fb6b | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 4cd00de449f10d4979f60ef7fcd1ed430c3d8ac500f67f07fe0f446f4817122a | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | chmod | FilesystemManager.chmod | [
"module",
"class:FilesystemManager:0",
"method:chmod:0"
] | 0 | 334 | 349 | 4 | 58 | false | false | def chmod(self, path, mode, recursive=False):
...
| [] | """
Change file/dir permission
:param path: path of file/dir to change
:param mode: octet mode
:param recursive: apply chmod recursively
:return:
"""
args = {
'path': path,
'mode': mode,
'recursive': recursive,
}
return self._client.json('filesystem.chmod', args)
| def chmod(self, path, mode, recursive=False):
"""
Change file/dir permission
:param path: path of file/dir to change
:param mode: octet mode
:param recursive: apply chmod recursively
:return:
"""
args = {
'path': path,
'mode': mode,
'recur... | 4d6029483682f25d7c4f37283c84aad2de59a4f0a62e8f53be29aedaa385c8b8 | 4d6029483682f25d7c4f37283c84aad2de59a4f0a62e8f53be29aedaa385c8b8 | 156706c41c9e5e6d987f502347d369136dbc899cccda0dc11f43d5274ae0d152 | 356ad6509718bf9e9ee0c1d0684d78aa9265b14ec437e7055fb08d47dede2821 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | fb1d04f5a517a9eec25537fff4a321f891e47ddf3f2220c3c6f9249b460e7a48 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | chown | FilesystemManager.chown | [
"module",
"class:FilesystemManager:0",
"method:chown:0"
] | 0 | 351 | 368 | 4 | 58 | false | false | def chown(self, path, user, group, recursive=False):
...
| [] | """
Change file/dir owner
:param path: path of file/dir
:param user: user name
:param group: group name
:param recursive: apply chown recursively
:return:
"""
args = {
'path': path,
'user': user,
'group': group,
'recursive': recursive,
}
return self._client.json('filesystem.... | def chown(self, path, user, group, recursive=False):
"""
Change file/dir owner
:param path: path of file/dir
:param user: user name
:param group: group name
:param recursive: apply chown recursively
:return:
"""
args = {
'path': path,
'use... | 73cf026db4244fa0e267b65215c1f34f6246c779ff80d1691202197cd9d9b7e1 | 73cf026db4244fa0e267b65215c1f34f6246c779ff80d1691202197cd9d9b7e1 | 7586bd5c2b718ae98880fc2adad6672f1c8ec4ffb607bff95c8ea1e1f0b20880 | 5caa0c78f0e49379d3d1a3ab33c9431ea2af7d25337d7b43f3505d72f3dae0fb | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 06e4b908f8c5c296385503293b53210f4d1862aa2c57dc873ce8ea4b4c9bbfa1 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | read | FilesystemManager.read | [
"module",
"class:FilesystemManager:0",
"method:read:0"
] | 0 | 370 | 382 | 4 | 48 | false | false | def read(self, fd):
...
| [] | """
Read a block from the given file descriptor
:param fd: file descriptor
:return: bytes
"""
args = {
'fd': fd,
}
data = self._client.json('filesystem.read', args)
return base64.decodebytes(data.encode())
| def read(self, fd):
"""
Read a block from the given file descriptor
:param fd: file descriptor
:return: bytes
"""
args = {
'fd': fd,
}
data = self._client.json('filesystem.read', args)
return base64.decodebytes(data.encode())
| ff226a4aad8d9f6ab67f2619da0e12b948e236a63137cd0c3709f79f01a1fb77 | ff226a4aad8d9f6ab67f2619da0e12b948e236a63137cd0c3709f79f01a1fb77 | 8fbbd412483e301d9c17cf999b3bd7609681852fbf0af544a52d442eee030def | 432aa2405cff4676a6d8f756d9565378902775747d39081b18cc4957ba8bad36 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [
{
"bound_name": "base64",
"qualified_name": "base64",
"statement": "import base64",
"line": 6
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 18b5d95abc983d9546f7e10631c6cb44e01cdc94221173d19ff7c7c68ab0dd8e | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | write | FilesystemManager.write | [
"module",
"class:FilesystemManager:0",
"method:write:0"
] | 0 | 384 | 399 | 4 | 58 | false | false | def write(self, fd, bytes):
...
| [] | """
Write a block of bytes to an open file descriptor (that is open with one of the writing modes
:param fd: file descriptor
:param bytes: bytes block to write
:return:
:note: don't overkill the node with large byte chunks, also for large file upload check the upload method.
"""
args = {
'... | def write(self, fd, bytes):
"""
Write a block of bytes to an open file descriptor (that is open with one of the writing modes
:param fd: file descriptor
:param bytes: bytes block to write
:return:
:note: don't overkill the node with large byte chunks, also for large file up... | ab8d9061730828cf8f842c8e435843e68a7b5582c0c4c5b03ab630ed06e5a0b8 | ab8d9061730828cf8f842c8e435843e68a7b5582c0c4c5b03ab630ed06e5a0b8 | 7ca914155b51a0cf16c18af3ce49d229e3e69e927760a1734c998b4dce955da8 | b46394a871dfcd686cf91af844be84c9576ac25c29461ee98ce496684cabcf0e | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [
{
"bound_name": "base64",
"qualified_name": "base64",
"statement": "import base64",
"line": 6
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 368938643c2fb94f52041887be1155cb0c05fb14956734608f32cd6c58b9c0b3 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | close | FilesystemManager.close | [
"module",
"class:FilesystemManager:0",
"method:close:0"
] | 0 | 401 | 411 | 4 | 58 | false | false | def close(self, fd):
...
| [] | """
Close file
:param fd: file descriptor
:return:
"""
args = {
'fd': fd,
}
return self._client.json('filesystem.close', args)
| def close(self, fd):
"""
Close file
:param fd: file descriptor
:return:
"""
args = {
'fd': fd,
}
return self._client.json('filesystem.close', args)
| 82b5804a3188c3c113282a2eca9559ebaf47c73808d9b55b3afe1138052a0102 | 82b5804a3188c3c113282a2eca9559ebaf47c73808d9b55b3afe1138052a0102 | 873272db48b75d479bb48b3e00bd35d18e055bf1e57dd137c3f845f15e546274 | 58d6d6d75d381a401562737030540a1174bcda65a6f604d31740248bd4dfeae2 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | ad05bc673380ced317c97e6f56c0078a793f674e5097c0ea4a6fcd7200cf4f8c | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | upload | FilesystemManager.upload | [
"module",
"class:FilesystemManager:0",
"method:upload:0"
] | 0 | 413 | 427 | 4 | 22 | false | false | def upload(self, remote, reader):
...
| [] | """
Uploads a file
:param remote: remote file name
:param reader: an object that implements the read(size) method (typically a file descriptor)
:return:
"""
fd = self.open(remote, 'w')
while True:
chunk = reader.read(512 * 1024)
if chunk == b'':
break
self.write(fd, chunk)
self.c... | def upload(self, remote, reader):
"""
Uploads a file
:param remote: remote file name
:param reader: an object that implements the read(size) method (typically a file descriptor)
:return:
"""
fd = self.open(remote, 'w')
while True:
chunk = reader.read(512 * 102... | c7fe000b11752a0221d8846720ff10f753216407a887b6788808e014359e394b | c7fe000b11752a0221d8846720ff10f753216407a887b6788808e014359e394b | 91068a74e26534095fb0422e0df3f16152a78e43b3c563c5b8feb33dc2350185 | 8b5c464b38601aa6f3b5fcccdbb37f70c20fed03cceadce665410e719751d7d4 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | a3ff3905e054dc4fab0d8c0f33b1d5d8487a520fcf0497330c5df5c4ebf3ec77 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | download | FilesystemManager.download | [
"module",
"class:FilesystemManager:0",
"method:download:0"
] | 0 | 429 | 443 | 4 | 22 | false | false | def download(self, remote, writer):
...
| [] | """
Downloads a file
:param remote: remote file name
:param writer: an object the implements the write(bytes) interface (typical a file descriptor)
:return:
"""
fd = self.open(remote)
while True:
chunk = self.read(fd)
if chunk == b'':
break
writer.write(chunk)
self.close(fd)
| def download(self, remote, writer):
"""
Downloads a file
:param remote: remote file name
:param writer: an object the implements the write(bytes) interface (typical a file descriptor)
:return:
"""
fd = self.open(remote)
while True:
chunk = self.read(fd)
... | c8231596949563483b40471cc53a59ae0eb77fcc3a42e34012620f42714574eb | c8231596949563483b40471cc53a59ae0eb77fcc3a42e34012620f42714574eb | 63615548f65a7d7c3a7d2ef92751408967be7827d26b854cdd8544c6dc71c349 | ff1c30d804fe1cf33445e85a3f44af71d4eae6261e3c78f52bba0579bca66947 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | cd3b672b78ba00b26568e615144574d0306ee3eb19719c80d629ec7a373edff5 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | upload_file | FilesystemManager.upload_file | [
"module",
"class:FilesystemManager:0",
"method:upload_file:0"
] | 0 | 445 | 453 | 4 | 33 | false | false | def upload_file(self, remote, local):
...
| [] | """
Uploads a file
:param remote: remote file name
:param local: local file name
:return:
"""
file = open(local, 'rb')
self.upload(remote, file)
| def upload_file(self, remote, local):
"""
Uploads a file
:param remote: remote file name
:param local: local file name
:return:
"""
file = open(local, 'rb')
self.upload(remote, file)
| f597c954c2de267185c867d91ae4f062ac5202c5ede1cc22c9fcda3084a1e1f6 | f597c954c2de267185c867d91ae4f062ac5202c5ede1cc22c9fcda3084a1e1f6 | a4fcf292c22961debb39997e7ec0ceb3ca9d7c1d3c2d8bb5d0fe2fe874248a40 | ee3e32148ca8bbe5fdbb57b64d165f884518ba56276d16c40cf277edea6c9143 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | a99faa109a275cd774c1f9520f3e4f674d5df7cccf1d9e7bd732e2b430585b22 | da8a6034c2975d347edc1bab8a1079ad054bef1c98c8c596be8ce6e2a4a4d0ad | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | download_file | FilesystemManager.download_file | [
"module",
"class:FilesystemManager:0",
"method:download_file:0"
] | 0 | 455 | 463 | 4 | 35 | false | false | def download_file(self, remote, local):
...
| [] | """
Downloads a file
:param remote: remote file name
:param local: local file name
:return:
"""
file = open(local, 'wb')
self.download(remote, file)
| def download_file(self, remote, local):
"""
Downloads a file
:param remote: remote file name
:param local: local file name
:return:
"""
file = open(local, 'wb')
self.download(remote, file)
| be01c60d42c8dbf277afb7573eb53485e5d4539dd2114dd481dec990524178d2 | be01c60d42c8dbf277afb7573eb53485e5d4539dd2114dd481dec990524178d2 | 04f36d1bfe80b810e9a36a5e20efe03eb63f6f31e2aa9b7696db40efc6a746ee | dc2c9b00f3ff79ea47a287dae3cfa03212188c0ac51e911c2ae09b54c27eba16 | null | [
"FilesystemManager"
] | [
"class FilesystemManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | BaseClient | BaseClient | [
"module",
"class:BaseClient:0"
] | 0 | 466 | 605 | 0 | 23 | false | true | class BaseClient:
...
| [] | _system_chk = typchk.Checker({
'name': str,
'args': [str],
'dir': str,
'stdin': str,
'env': typchk.Or(typchk.Map(str, str), typchk.IsNone()),
})
_bash_chk = typchk.Checker({
'stdin': str,
'script': str,
})
def __init__(self, timeout=None):
...
@property
def info(self):
...
@property
... | class BaseClient:
_system_chk = typchk.Checker({
'name': str,
'args': [str],
'dir': str,
'stdin': str,
'env': typchk.Or(typchk.Map(str, str), typchk.IsNone()),
})
_bash_chk = typchk.Checker({
'stdin': str,
'script': str,
})
def __init__(self, t... | 5536e414b4fbeb33d9e796a80d89c4c9a72b18af3e5155da0416ef7ee199f20f | 8dcf98a8b19c0c40205d87761bee231d488a69fee557446c3c18b2988f961e31 | 5317104f112131f9bd4f6d662acaa9dde5446ce8a7d5b914079507e0b45c064e | c0851981d57f0e917e77b6ada1ca5058f1674acf49b914b37e8417da45896029 | 99ba42c7d2f398c7d0d1aaf4d6041ea7cd8767971afcd42a68d7798d5e30294f | [] | [] | [
{
"bound_name": "typchk",
"qualified_name": ".typchk",
"statement": "from . import typchk",
"line": 11
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 664fdab6f2fa6bbe194b268b3e6f5b2c9f50eb4a2a601b47de1dc8a23ca8d1f0 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | BaseClient.__init__ | [
"module",
"class:BaseClient:0",
"method:__init__:0"
] | 0 | 480 | 489 | 4 | 34 | false | false | def __init__(self, timeout=None):
...
| [] | if timeout is None:
self.timeout = DefaultTimeout
else:
self.timeout = timeout
self._info = InfoManager(self)
self._job = JobManager(self)
self._process = ProcessManager(self)
self._filesystem = FilesystemManager(self)
self._ip = IPManager(self)
| def __init__(self, timeout=None):
if timeout is None:
self.timeout = DefaultTimeout
else:
self.timeout = timeout
self._info = InfoManager(self)
self._job = JobManager(self)
self._process = ProcessManager(self)
self._filesystem = FilesystemManager(self)
self._ip = IPManager(se... | 845490688a594aaf0ae2404820853a9a0482459e8d7009df27f76d4edd1ee220 | 845490688a594aaf0ae2404820853a9a0482459e8d7009df27f76d4edd1ee220 | e8be8cc58cf9e70722ebd6242b70eb49ea209350e96b402c7a7e8ba949e5acea | da811188a072811c6d0cbd07ed3dd1a31fe3b544bb08a6f07086c5df5efb5987 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 61bb5b890c5e603da97973219a818233370a02b4716d760f27b0dc5b8c8a5041 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | info | BaseClient.info | [
"module",
"class:BaseClient:0",
"method:info:0"
] | 0 | 491 | 493 | 4 | 25 | false | false | @property
def info(self):
...
| [
"property"
] | return self._info
| @property
def info(self):
return self._info
| ffa24f179e11869bc4d88359c6a75e1f9bb38ca237de2cb231a026df047ab3a8 | ffa24f179e11869bc4d88359c6a75e1f9bb38ca237de2cb231a026df047ab3a8 | 93ee7123a262c60bf29d9acf9f4c6eac9052c61f3abb878a3b1b6444af0aa02b | d07c18550bdc4629218a9da1721672cd3e390181e18369b863fd3e04a2c3a9ff | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 8457d4debac7ddf0ed4df0cbc2d5f99b4f6d8e81733fe91192138696e55026c9 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | job | BaseClient.job | [
"module",
"class:BaseClient:0",
"method:job:0"
] | 0 | 495 | 497 | 4 | 24 | false | false | @property
def job(self):
...
| [
"property"
] | return self._job
| @property
def job(self):
return self._job
| 1ea24e6d13ad29bf63f28ddb02332b89ccdf11d823863eca9268b4024de6c1aa | 1ea24e6d13ad29bf63f28ddb02332b89ccdf11d823863eca9268b4024de6c1aa | c2ab863650040edf1555256de24d32be6a58412573f1ce7f8d0b5b6318b116b1 | 9e319a6abfde7f512a6bca732b829a9c05ba8ea86f6172efd9fdd666c16de97c | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | f44c84f1ab1b38666ef761f44aa49ff670ceedd4db710829648a22bd57536fdb | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | process | BaseClient.process | [
"module",
"class:BaseClient:0",
"method:process:0"
] | 0 | 499 | 501 | 4 | 28 | false | false | @property
def process(self):
...
| [
"property"
] | return self._process
| @property
def process(self):
return self._process
| 4199ababe9bb521c03198c48813e9b6dcf63fb080e2ce1d7f28503f953f3c684 | 4199ababe9bb521c03198c48813e9b6dcf63fb080e2ce1d7f28503f953f3c684 | b796d817f72f57a678052c6a93c7cae04d2adae0b52ee14cc3e7b45a5dda4eb4 | c2c9d0fa9ce8eee44c6a1d51cfb5a02f13c7e8c3b258059d9e7173aa9e8fb854 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 0fca32f06c7ff260c9a1bdcd4db1bce7fdfe0fe3f41847ff8337a52674711de1 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | filesystem | BaseClient.filesystem | [
"module",
"class:BaseClient:0",
"method:filesystem:0"
] | 0 | 503 | 505 | 4 | 31 | false | false | @property
def filesystem(self):
...
| [
"property"
] | return self._filesystem
| @property
def filesystem(self):
return self._filesystem
| 2eb285a8ff76508a340f3c48814163f4858a908a6b2b7dd3127a9d82fe0ddcfa | 2eb285a8ff76508a340f3c48814163f4858a908a6b2b7dd3127a9d82fe0ddcfa | 79bf30be86e920cc36b6b139be78c579ab8bb2037aed7e57b3b84d1dadb3b511 | 2be8b559108f309fb0b4144d39c3cee55adf93638311a57d9dd33c1dd1cd85ce | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 1fd69509f1c3bec841af02a54f3a5133e609105e37a8ccdc5cdafd7c2f325247 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | ip | BaseClient.ip | [
"module",
"class:BaseClient:0",
"method:ip:0"
] | 0 | 507 | 509 | 4 | 23 | false | false | @property
def ip(self):
...
| [
"property"
] | return self._ip
| @property
def ip(self):
return self._ip
| 4ac3e41dd91f6d00fda60dd8753c3321614e5d777733e5f5709e88bca02d5c7d | 4ac3e41dd91f6d00fda60dd8753c3321614e5d777733e5f5709e88bca02d5c7d | ee919f399b77f9625c273043f2dd0845ae1995a02fb45b80beb89fbcdc74d817 | c284f7f1ef607cb3f4692a0c4a451aa9f769b43a36821f95c433aedf9de39e91 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 3b027ebdbc19cdf36b2463b0e6977ddd5f255ab9c5020fd6d9e46c02040f6d88 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | raw | BaseClient.raw | [
"module",
"class:BaseClient:0",
"method:raw:0"
] | 0 | 511 | 521 | 4 | 30 | false | false | def raw(self, command, arguments, queue=None, max_time=None):
...
| [] | """
Implements the low level command call, this needs to build the command structure
and push it on the correct queue.
:param command: Command name to execute supported by the node (ex: core.system, info.cpu, etc...)
check documentation for list of built in commands
:param arguments... | def raw(self, command, arguments, queue=None, max_time=None):
"""
Implements the low level command call, this needs to build the command structure
and push it on the correct queue.
:param command: Command name to execute supported by the node (ex: core.system, info.cpu, etc...)
... | 7de3ee23d6c3d70ace80197981ee7b54e3d6a012eb4f43267e9c71b6edb9b99d | 7de3ee23d6c3d70ace80197981ee7b54e3d6a012eb4f43267e9c71b6edb9b99d | 7e2ed1edd0f3300c6e71fe77c64ef5e2183a9b61a50e2fc10b26e7ae3bc36c66 | 188c3861b553babf6cb57cddc18843a4db5028e56610668051a662bb17a960e5 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | cf016a4e4163f6bc815987de1330af0bd92ab423ee6958bf44c7bd43ac59317e | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | sync | BaseClient.sync | [
"module",
"class:BaseClient:0",
"method:sync:0"
] | 0 | 523 | 535 | 4 | 21 | false | false | def sync(self, command, arguments):
...
| [] | """
Same as self.raw except it do a response.get() waiting for the command execution to finish and reads the result
:return: Result object
"""
response = self.raw(command, arguments)
result = response.get()
if result.state != 'SUCCESS':
raise RuntimeError('invalid response: %s' % result.state, result)
... | def sync(self, command, arguments):
"""
Same as self.raw except it do a response.get() waiting for the command execution to finish and reads the result
:return: Result object
"""
response = self.raw(command, arguments)
result = response.get()
if result.state != 'SUCCESS':
... | 947b9d15ec78f2b0ef62d5c5d5b08d8f674b1db3640a4dbb41ce378125daf865 | 947b9d15ec78f2b0ef62d5c5d5b08d8f674b1db3640a4dbb41ce378125daf865 | 340a2d4eac64694b74433019f7faca9cd8a48fbd32da31b0296c2df1bd8c349a | 42226f2cda0b037367ca762dc3acda429a4aa9968999dab7c1247416098f7cb9 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 4c4ec18e41310f136d37aeba94ac83b8540a2b63884f6affcfe266c892a6de86 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | json | BaseClient.json | [
"module",
"class:BaseClient:0",
"method:json:0"
] | 0 | 537 | 547 | 4 | 38 | false | false | def json(self, command, arguments):
...
| [] | """
Same as self.sync except it assumes the returned result is json, and loads the payload of the return object
:Return: Data
"""
result = self.sync(command, arguments)
if result.level != 20:
raise RuntimeError('invalid result level, expecting json(20) got (%d)' % result.level)
return json.loads(result... | def json(self, command, arguments):
"""
Same as self.sync except it assumes the returned result is json, and loads the payload of the return object
:Return: Data
"""
result = self.sync(command, arguments)
if result.level != 20:
raise RuntimeError('invalid result level, expec... | 82fd6a7326d969a926aef9f83317ef16a16e30a132b31939c909eb371d06f765 | 82fd6a7326d969a926aef9f83317ef16a16e30a132b31939c909eb371d06f765 | 190f36d7858a5bdc5ee5355184ecc2c3213ca9e7abcba011b6858c05f3aa3f18 | 2d055a91554da7ae590f6193077ee070e140bbd46b72689bc18d2bbe72304b44 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [
{
"bound_name": "json",
"qualified_name": "json",
"statement": "import json",
"line": 3
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | e030454a449800fed3c90a55eac311c7900faf19b9c1114700d1aa461ea46801 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | ping | BaseClient.ping | [
"module",
"class:BaseClient:0",
"method:ping:0"
] | 0 | 549 | 561 | 4 | 38 | false | false | def ping(self):
...
| [] | """
Ping a node, checking for it's availability. a Ping should never fail unless the node is not reachable
or not responsive.
:return:
"""
response = self.raw('core.ping', {})
result = response.get()
if result.state != 'SUCCESS':
raise RuntimeError('invalid response: %s' % result.state)
return json.... | def ping(self):
"""
Ping a node, checking for it's availability. a Ping should never fail unless the node is not reachable
or not responsive.
:return:
"""
response = self.raw('core.ping', {})
result = response.get()
if result.state != 'SUCCESS':
raise RuntimeError... | 9b170e26b9402d587c5f9ae79273c938fb99f88835b5d868e4ade0988b861402 | 9b170e26b9402d587c5f9ae79273c938fb99f88835b5d868e4ade0988b861402 | 1fc11aab281db0df5005d2b412056648783426d0dd50e18620f2a2392bbe82df | e44393943b6da4e73af16b691272e6af8663d0759daf84cc942910e1209e40bf | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [
{
"bound_name": "json",
"qualified_name": "json",
"statement": "import json",
"line": 3
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 1317c47503f2f2cd0f32ccaa20743d4d4a417a41a04a9f8333df996ea31233a2 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | system | BaseClient.system | [
"module",
"class:BaseClient:0",
"method:system:0"
] | 0 | 563 | 588 | 4 | 23 | false | false | def system(self, command, dir='', stdin='', env=None):
...
| [] | """
Execute a command
:param command: command to execute (with its arguments) ex: `ls -l /root`
:param dir: CWD of command
:param stdin: Stdin data to feed to the command stdin
:param env: dict with ENV variables that will be exported to the command
:return:
"""
parts = shlex.split(command... | def system(self, command, dir='', stdin='', env=None):
"""
Execute a command
:param command: command to execute (with its arguments) ex: `ls -l /root`
:param dir: CWD of command
:param stdin: Stdin data to feed to the command stdin
:param env: dict with ENV variables that w... | 28ab2b6a9e62352a0f47b8295c0c5f9a3e51cfa591946c9bb4d0d2c540c31626 | 28ab2b6a9e62352a0f47b8295c0c5f9a3e51cfa591946c9bb4d0d2c540c31626 | bf44c634e1bcfa73a76c73a0bd556bc91f701726477a817b6ccd4ce53c345e1f | 38f13bdd98a2d58ede2b8374c3e4a8ca6e14f326a39c682ef4712a979150cfd7 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [
{
"bound_name": "shlex",
"qualified_name": "shlex",
"statement": "import shlex",
"line": 5
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 439b73c969bd6f12b578d4f3ebca8f48db9ac5915531a465e2199a5769f11f02 | a71822dbfad982a2babb2f78f572e8898fe8516fe72dabb0f4c2dc56e1f32400 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | bash | BaseClient.bash | [
"module",
"class:BaseClient:0",
"method:bash:0"
] | 0 | 590 | 605 | 4 | 23 | false | false | def bash(self, script, stdin=''):
...
| [] | """
Execute a bash script, or run a process inside a bash shell.
:param script: Script to execute (can be multiline script)
:param stdin: Stdin data to feed to the script
:return:
"""
args = {
'script': script,
'stdin': stdin,
}
self._bash_chk.check(args)
response = self.raw(command='bash',... | def bash(self, script, stdin=''):
"""
Execute a bash script, or run a process inside a bash shell.
:param script: Script to execute (can be multiline script)
:param stdin: Stdin data to feed to the script
:return:
"""
args = {
'script': script,
'stdin': s... | 53f39c23c4a65601c21512769add3fabb36e1fc56b0bd5357bd1bc8034237f13 | 53f39c23c4a65601c21512769add3fabb36e1fc56b0bd5357bd1bc8034237f13 | 96390d35fc84c06e259b894e64e8416d8d4ba29092e8fa7be769d04f702200cc | b6cee68222f5a7adea98b1c07738df29a74adba78a6e91af67d31e491d4c30a3 | null | [
"BaseClient"
] | [
"class BaseClient:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | cf16b990478f2e575e720ec38f24fd3d1f5f2dd1db776971c1617cd9f694930e | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | ContainerClient | ContainerClient | [
"module",
"class:ContainerClient:0"
] | 0 | 608 | 675 | 0 | 48 | false | true | class ContainerClient(BaseClient):
...
| [] | class ContainerZerotierManager:
...
_raw_chk = typchk.Checker({
'container': int,
'command': {
'command': str,
'arguments': typchk.Any(),
'queue': typchk.Or(str, typchk.IsNone()),
'max_time': typchk.Or(int, typchk.IsNone()),
}
})
def __init__(self, client, container):
... | class ContainerClient(BaseClient):
class ContainerZerotierManager:
...
_raw_chk = typchk.Checker({
'container': int,
'command': {
'command': str,
'arguments': typchk.Any(),
'queue': typchk.Or(str, typchk.IsNone()),
'max_time': typchk.Or(int... | 0baef3e2ca7503f1a47706a7cadb67e8d1b844156e4e8bdd74c66e91a3fcdc8a | 85494d5f72893b1131ac222cd1201e26ebf688bc8f3940bab23d3ec890d4706b | b226e09a3959eea2c7086fb7385343c579639c03a62c333ae6700bdea795dee5 | 195414470ba1c5ae6e9412e74e6344a566fe49945ff2a88c1b381b2ce034d637 | 528e9cdecf854bee2311c48842e2dd970d33fdedae2b112c286479db491b449e | [] | [] | [
{
"bound_name": "typchk",
"qualified_name": ".typchk",
"statement": "from . import typchk",
"line": 11
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | edfeeef63af7e7a59534f6ccaee34b5e680b40585396e77c14e098c16a05f1cf | cf16b990478f2e575e720ec38f24fd3d1f5f2dd1db776971c1617cd9f694930e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | ContainerZerotierManager | ContainerClient.ContainerZerotierManager | [
"module",
"class:ContainerClient:0",
"class:ContainerZerotierManager:0"
] | 0 | 609 | 618 | 4 | 91 | false | true | class ContainerZerotierManager:
...
| [] | def __init__(self, client, container):
...
def info(self):
...
def list(self):
...
| class ContainerZerotierManager:
def __init__(self, client, container):
...
def info(self):
...
def list(self):
...
| 6cdb0f394ebce6f28b293ae058494d1be6e1f8e139a2e2716fee07ee98a3f5b7 | e8799e8209014f500a029ee60bea2ee19654503993574b70800bfde2346947c6 | 860c380ebfd609952848f1a16d4bceb8a16b32cf81f3ffe4faff764441b7b47b | 77c27cf4d3c12112e393bb88e2c535314a6f48b2c982cdb8baaa7a0697047548 | f5b45b5949d2e71147ab48bec1b30a8fb00ec4c5c212cd84b9b7ca481426e5ca | [
"ContainerClient"
] | [
"class ContainerClient(BaseClient):\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 71fe848ef7d484cfe8d1f265d031a22f026bddbabd96543914622e2d094a094d | edfeeef63af7e7a59534f6ccaee34b5e680b40585396e77c14e098c16a05f1cf | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | ContainerClient.ContainerZerotierManager.__init__ | [
"module",
"class:ContainerClient:0",
"class:ContainerZerotierManager:0",
"method:__init__:0"
] | 0 | 610 | 612 | 8 | 33 | false | false | def __init__(self, client, container):
...
| [] | self._container = container
self._client = client
| def __init__(self, client, container):
self._container = container
self._client = client
| 9a7d2859442558d52b1f2698354b56bd758831f8ae1178361e05b48c01d07799 | 9a7d2859442558d52b1f2698354b56bd758831f8ae1178361e05b48c01d07799 | e36c5d2af4de3a128917fa941ad064106893887757a88b0db69bc2da3ef71b26 | 84198e314e3aa546879a8ef54d600f35d6938ca9e2f1f05cd6d24ff9f31d5e35 | null | [
"ContainerClient",
"ContainerClient.ContainerZerotierManager"
] | [
"class ContainerClient(BaseClient):\n ...\n",
"class ContainerZerotierManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 8e334a8812e194ef8f3d934b0b7e87ad23a1be6e0140483837699f95e1c342b6 | edfeeef63af7e7a59534f6ccaee34b5e680b40585396e77c14e098c16a05f1cf | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | info | ContainerClient.ContainerZerotierManager.info | [
"module",
"class:ContainerClient:0",
"class:ContainerZerotierManager:0",
"method:info:0"
] | 0 | 614 | 615 | 8 | 91 | false | false | def info(self):
...
| [] | return self._client.json('corex.zerotier.info', {'container': self._container})
| def info(self):
return self._client.json('corex.zerotier.info', {'container': self._container})
| 68f5e809d7cbfc4c5bf1b2a4da4de6bc69221ec40488cbbb0df2ab7ddd805e2f | 68f5e809d7cbfc4c5bf1b2a4da4de6bc69221ec40488cbbb0df2ab7ddd805e2f | 1a0f132d22b401e77216b50352a63b25a713216b782c8da7c30e9b8b074b1db6 | 6ad89af3ae8db167b9c8d5d1a5ec137a2c47c6c49d297e65a76b830b5a616f3b | null | [
"ContainerClient",
"ContainerClient.ContainerZerotierManager"
] | [
"class ContainerClient(BaseClient):\n ...\n",
"class ContainerZerotierManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b24a27d27ffe6a9f89fac3b1bfb2a815fbdf929957c758cae64958352f065ce8 | edfeeef63af7e7a59534f6ccaee34b5e680b40585396e77c14e098c16a05f1cf | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | list | ContainerClient.ContainerZerotierManager.list | [
"module",
"class:ContainerClient:0",
"class:ContainerZerotierManager:0",
"method:list:0"
] | 0 | 617 | 618 | 8 | 91 | false | false | def list(self):
...
| [] | return self._client.json('corex.zerotier.list', {'container': self._container})
| def list(self):
return self._client.json('corex.zerotier.list', {'container': self._container})
| 7200e2bae6e2018e52f68391f5db40f972027f55bf5455bb07cc4a0f79bb336d | 7200e2bae6e2018e52f68391f5db40f972027f55bf5455bb07cc4a0f79bb336d | 4b274af03beb91cb7ea439b8e2f8f64ea0039146608e2eb4d5a5122f30fd220f | 47ba405e4c6ba3fe76f440858efa87dd4b7dc34c3fb2a3bbd37313ea4ab6bf4e | null | [
"ContainerClient",
"ContainerClient.ContainerZerotierManager"
] | [
"class ContainerClient(BaseClient):\n ...\n",
"class ContainerZerotierManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 33a94eeedcfeda84e2331c161069e12d3e29c920473e6e6a46186b5b5707b789 | cf16b990478f2e575e720ec38f24fd3d1f5f2dd1db776971c1617cd9f694930e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | ContainerClient.__init__ | [
"module",
"class:ContainerClient:0",
"method:__init__:0"
] | 0 | 630 | 635 | 4 | 84 | false | false | def __init__(self, client, container):
...
| [] | super().__init__(client.timeout)
self._client = client
self._container = container
self._zerotier = ContainerClient.ContainerZerotierManager(client, container)
| def __init__(self, client, container):
super().__init__(client.timeout)
self._client = client
self._container = container
self._zerotier = ContainerClient.ContainerZerotierManager(client, container)
| 8ff1be2560ac49d38c7ac6f8cc7dfa0eb67b40aa25801a4a18e4f11433de7e9e | 8ff1be2560ac49d38c7ac6f8cc7dfa0eb67b40aa25801a4a18e4f11433de7e9e | e36c5d2af4de3a128917fa941ad064106893887757a88b0db69bc2da3ef71b26 | af02d71b9f078a758158771d1bc59cac2c1c6151d70e09ea9496202e4e915a31 | null | [
"ContainerClient"
] | [
"class ContainerClient(BaseClient):\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b7d22d4e2a72aa9570d469f3cf667b2ec31ab0200ce09ceb86b6bc80bacc6fb3 | cf16b990478f2e575e720ec38f24fd3d1f5f2dd1db776971c1617cd9f694930e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | container | ContainerClient.container | [
"module",
"class:ContainerClient:0",
"method:container:0"
] | 0 | 637 | 639 | 4 | 30 | false | false | @property
def container(self):
...
| [
"property"
] | return self._container
| @property
def container(self):
return self._container
| 8c5c109920677ee98fc0147b69e60a77fc91cb349951919c4b44242b266e9cee | 8c5c109920677ee98fc0147b69e60a77fc91cb349951919c4b44242b266e9cee | b22eb1ee43dc430e423854b3dc81cb9cf6f03261cb83a57887a988709050ec9c | 916fafb8f041d65c3af5552c977fc3ceb1d74f2e09c29be75e85be3bb1678fb4 | null | [
"ContainerClient"
] | [
"class ContainerClient(BaseClient):\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | ff3ddb0d79eb19722426dba2ffee5202879479fa8f878a20c55ebf07bfb709ea | cf16b990478f2e575e720ec38f24fd3d1f5f2dd1db776971c1617cd9f694930e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | zerotier | ContainerClient.zerotier | [
"module",
"class:ContainerClient:0",
"method:zerotier:0"
] | 0 | 641 | 643 | 4 | 29 | false | false | @property
def zerotier(self):
...
| [
"property"
] | return self._zerotier
| @property
def zerotier(self):
return self._zerotier
| baab54447118e6aaf7c4655d47cde8372ecc8d9e48f5daf3871902eed97c83b2 | baab54447118e6aaf7c4655d47cde8372ecc8d9e48f5daf3871902eed97c83b2 | b061897a1c68c4e6192ac27feadd1c8e54a65af7d938385fb9e49775334f0a38 | e0ed610c44d8495844794f0ec970223b1c88ceff4ac3296aa80064e69dd99747 | null | [
"ContainerClient"
] | [
"class ContainerClient(BaseClient):\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 631863599d5cfd1c9c71e7c2dc492e2bb6cab42144f2f89032d74710a25059d5 | cf16b990478f2e575e720ec38f24fd3d1f5f2dd1db776971c1617cd9f694930e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | raw | ContainerClient.raw | [
"module",
"class:ContainerClient:0",
"method:raw:0"
] | 0 | 645 | 675 | 4 | 48 | false | false | def raw(self, command, arguments, queue=None, max_time=None):
...
| [] | """
Implements the low level command call, this needs to build the command structure
and push it on the correct queue.
:param command: Command name to execute supported by the node (ex: core.system, info.cpu, etc...)
check documentation for list of built in commands
:param arguments... | def raw(self, command, arguments, queue=None, max_time=None):
"""
Implements the low level command call, this needs to build the command structure
and push it on the correct queue.
:param command: Command name to execute supported by the node (ex: core.system, info.cpu, etc...)
... | 37afc163bbbbcf4e0764ee02e5ebfc64e1281eb7b7201a17f13f929e245aa1be | 37afc163bbbbcf4e0764ee02e5ebfc64e1281eb7b7201a17f13f929e245aa1be | 7e2ed1edd0f3300c6e71fe77c64ef5e2183a9b61a50e2fc10b26e7ae3bc36c66 | 85d4271c3baeb2dc95599ada7c63838f262a29f5f7054c34a09777b5f1bc8728 | null | [
"ContainerClient"
] | [
"class ContainerClient(BaseClient):\n ...\n"
] | [
{
"bound_name": "json",
"qualified_name": "json",
"statement": "import json",
"line": 3
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | ContainerManager | ContainerManager | [
"module",
"class:ContainerManager:0"
] | 0 | 678 | 823 | 0 | 55 | false | true | class ContainerManager:
...
| [] | _create_chk = typchk.Checker({
'root': str,
'mount': typchk.Or(
typchk.Map(str, str),
typchk.IsNone()
),
'host_network': bool,
'nics': [{
'type': typchk.Enum('default', 'bridge', 'zerotier', 'vlan', 'vxlan'),
'id': typchk.Or(str, typchk.Missing()),
'name': typ... | class ContainerManager:
_create_chk = typchk.Checker({
'root': str,
'mount': typchk.Or(
typchk.Map(str, str),
typchk.IsNone()
),
'host_network': bool,
'nics': [{
'type': typchk.Enum('default', 'bridge', 'zerotier', 'vlan', 'vxlan'),
... | 64cfaae20a1da0f683b8a5047ece846272743ca48c89ce84afb0a7a6689be72e | e323bf2d99384ec3d511c8920e5df9e155895826da25cde648a8689ceefdce8e | a3e7158cb527eb2856fc154e2e7ba5e670186e49aa582ee89edce8d8a48d38a6 | 7499b815dea7258c89b8142558b408108951d29f81bd2fe666de0b009fef314f | 0f8e206923864d2b224448795f1606c79b50222fb3c876bf3d75d00b713c4a64 | [] | [] | [
{
"bound_name": "typchk",
"qualified_name": ".typchk",
"statement": "from . import typchk",
"line": 11
}
] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | cf9f858086a14f592581e7abf9c62b48c32f87391f5fa49657bc72bfc9061325 | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | ContainerManager.__init__ | [
"module",
"class:ContainerManager:0",
"method:__init__:0"
] | 0 | 720 | 721 | 4 | 29 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"ContainerManager"
] | [
"class ContainerManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 5e9c22b0370c9e70dfa43e07835f59ed9681581543920722a8ffd6b41fc1d041 | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | create | ContainerManager.create | [
"module",
"class:ContainerManager:0",
"method:create:0"
] | 0 | 723 | 781 | 4 | 23 | false | false | def create(self, root_url, mount=None, host_network=False, nics=DefaultNetworking, port=None, hostname=None, privileged=True, storage=None, tags=None):
...
| [] | """
Creater a new container with the given root flist, mount points and
zerotier id, and connected to the given bridges
:param root_url: The root filesystem flist
:param mount: a dict with {host_source: container_target} mount points.
where host_source directory must exists.
... | def create(self, root_url, mount=None, host_network=False, nics=DefaultNetworking, port=None, hostname=None, privileged=True, storage=None, tags=None):
"""
Creater a new container with the given root flist, mount points and
zerotier id, and connected to the given bridges
:param root_url: The... | 8eaeab1a17f0a0dad7e4a13d4dc104ca9c2a41ebd45d7f0cc70bd3ebb3bdab64 | 8eaeab1a17f0a0dad7e4a13d4dc104ca9c2a41ebd45d7f0cc70bd3ebb3bdab64 | 2d0238e86f75d7c8bd6f56bebfb679d9c2965e5a9cb1c5dd68763ee43b5c49c9 | a6f2a3e5cf3281131271c7040b5950a8aa2e7ca18ffe87f0571c84825d1d4add | null | [
"ContainerManager"
] | [
"class ContainerManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 70af09b0f8f073287565a9cbe95615daae283a5f2fa1d5c5f851dd813e8d262d | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | list | ContainerManager.list | [
"module",
"class:ContainerManager:0",
"method:list:0"
] | 0 | 783 | 788 | 4 | 50 | false | false | def list(self):
...
| [] | """
List running containers
:return: a dict with {container_id: <container info object>}
"""
return self._client.json('corex.list', {})
| def list(self):
"""
List running containers
:return: a dict with {container_id: <container info object>}
"""
return self._client.json('corex.list', {})
| 13aa5b87ef2f460406037a275754491c42b7f67771e83149e348a7f73cf325c2 | 13aa5b87ef2f460406037a275754491c42b7f67771e83149e348a7f73cf325c2 | 4b274af03beb91cb7ea439b8e2f8f64ea0039146608e2eb4d5a5122f30fd220f | 82a7ba9b88816a28046bb70e7d3bfe1a864592a65ecb82d51274393e4641565e | null | [
"ContainerManager"
] | [
"class ContainerManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 99bfe319cd2e961b7af2ab9954d3dff1607f9b4e674198827ceafea53f3041bf | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | find | ContainerManager.find | [
"module",
"class:ContainerManager:0",
"method:find:0"
] | 0 | 790 | 797 | 4 | 62 | false | false | def find(self, *tags):
...
| [] | """
Find containers that matches set of tags
:param tags:
:return:
"""
tags = list(map(str, tags))
return self._client.json('corex.find', {'tags': tags})
| def find(self, *tags):
"""
Find containers that matches set of tags
:param tags:
:return:
"""
tags = list(map(str, tags))
return self._client.json('corex.find', {'tags': tags})
| 26719b80d0338d5923c3f8054162376c69d0e4b031bfcb972cad8de2bb1f2a98 | 26719b80d0338d5923c3f8054162376c69d0e4b031bfcb972cad8de2bb1f2a98 | e7dc9366b38fbe5a76d87984147f1410f6a294c9a6fb89f811b4ba3c7399bc05 | b8d782c0cec1efbdfc934ed22f47685964345bd4a57cdd3ed85b17cb3f3a3223 | null | [
"ContainerManager"
] | [
"class ContainerManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 536b3ebc5962e76a7d9eb8db2d04052a6d5e17582ec9195392023b44544e0596 | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | terminate | ContainerManager.terminate | [
"module",
"class:ContainerManager:0",
"method:terminate:0"
] | 0 | 799 | 814 | 4 | 81 | false | false | def terminate(self, container):
...
| [] | """
Terminate a container given it's id
:param container: container id
:return:
"""
args = {
'container': container,
}
self._terminate_chk.check(args)
response = self._client.raw('corex.terminate', args)
result = response.get()
if result.state != 'SUCCESS':
raise RuntimeError('failed to termina... | def terminate(self, container):
"""
Terminate a container given it's id
:param container: container id
:return:
"""
args = {
'container': container,
}
self._terminate_chk.check(args)
response = self._client.raw('corex.terminate', args)
result = response.g... | 97dc46fbbc8c504d6d1c2c6770140ffea971e728435cb9a445890fa8593005cc | 97dc46fbbc8c504d6d1c2c6770140ffea971e728435cb9a445890fa8593005cc | 188037aaa9227145804b4d6efa90d4f53e4de87be7a8f5ce6d2070f8d0b25f36 | de3ce4de18b28194a29089aebb1c4997230da91615972c47aa691d4c4e81d526 | null | [
"ContainerManager"
] | [
"class ContainerManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 67836105f96842a67db93ae9ff381efa975e561792d63674b0b2068b114cbb03 | 13d68399b3e875ad4374bfd17a459cffd0284b8f03d78f233a4b8702eed20138 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | client | ContainerManager.client | [
"module",
"class:ContainerManager:0",
"method:client:0"
] | 0 | 816 | 823 | 4 | 55 | false | false | def client(self, container):
...
| [] | """
Return a client instance that is bound to that container.
:param container: container id
:return: Client object bound to the specified container id
"""
return ContainerClient(self._client, container)
| def client(self, container):
"""
Return a client instance that is bound to that container.
:param container: container id
:return: Client object bound to the specified container id
"""
return ContainerClient(self._client, container)
| f3abf0cb45ba1911e18dcb15fb1b74dd9d686ef7d39c2cca17cfb05b0dd8a3f3 | f3abf0cb45ba1911e18dcb15fb1b74dd9d686ef7d39c2cca17cfb05b0dd8a3f3 | 6494334198b718899286b97151324a09af2251b9ed95a752f65a4f3788a47690 | c864c7770b01b0a901e4780e84fdf7f1970a7f74b3ba05db4250df7e5c860db3 | null | [
"ContainerManager"
] | [
"class ContainerManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 3308f0faff7452debb162bdc09f8bbb0da6fb2bae1d988c4a784c4cae63de4da | 25c0de437ae9c93f061e6a6fdadcab247c8e43221d02140d3e93595b4c7ee05c | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | IPManager | IPManager | [
"module",
"class:IPManager:0"
] | 0 | 826 | 956 | 0 | 26 | false | true | class IPManager:
...
| [] | class IPBridgeManager:
...
class IPLinkManager:
...
class IPAddrManager:
...
class IPRouteManager:
...
def __init__(self, client):
...
@property
def bridge(self):
...
@property
def link(self):
...
@property
def addr(self):
...
@property
def route(self):
...
| class IPManager:
class IPBridgeManager:
...
class IPLinkManager:
...
class IPAddrManager:
...
class IPRouteManager:
...
def __init__(self, client):
...
@property
def bridge(self):
...
@property
def link(self):
...
@property
... | 1277998cada4c8f8359e951ff3c5ed857ad4338296e50eddadb76f52780cbb6e | 8a5567f04a6e9c2a25ce0fbd6fbe4aed3b09857714ad5ba163693e727498c17c | b6e77feb4726571fda37b1b55a8d48ac5c0b5bfac9602d7a67ef8406c42f0535 | 4a72eac638a4b43e3465643af799d2cad3fbfca591d1b74f9caa276e081e03ea | cb50ff03286797ae3f251885fee9849cadc0b2b6cd9cc8c56b4de9f72754de40 | [] | [] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 7398c0cc6d955211ec8a9b8206c2ac7b2565f6eb79ca3bd7c9598d5864393801 | 3308f0faff7452debb162bdc09f8bbb0da6fb2bae1d988c4a784c4cae63de4da | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | IPBridgeManager | IPManager.IPBridgeManager | [
"module",
"class:IPManager:0",
"class:IPBridgeManager:0"
] | 0 | 827 | 860 | 4 | 61 | false | true | class IPBridgeManager:
...
| [] | def __init__(self, client):
...
def add(self, name, hwaddr=None):
...
def delete(self, name):
...
def addif(self, name, inf):
...
def delif(self, name, inf):
...
| class IPBridgeManager:
def __init__(self, client):
...
def add(self, name, hwaddr=None):
...
def delete(self, name):
...
def addif(self, name, inf):
...
def delif(self, name, inf):
...
| 2d2883d9252767173b2d727be96b2d71312c794f7fbf912209f64ff015e11d64 | a3c424bd68d42fd5ca896fb2477dd49874f949f11b38af60718fbfb755bfdc36 | 801b3aaddf87ed721c92f995c7d404eff71fffccc430de08ba32cdd6e8d7004b | 10bc16c2b135424e092cca0f16bd65ad541663332e44480edb6e4e75c10c3d96 | 79d37dd40439513f036c8ab297c49a3b3a3c75ef3c17854e9bb98cd9b002498e | [
"IPManager"
] | [
"class IPManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 9a173391f8c69c87087ba02f041ea512ee58df74be9f99b886cf295ac70b267d | 7398c0cc6d955211ec8a9b8206c2ac7b2565f6eb79ca3bd7c9598d5864393801 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | IPManager.IPBridgeManager.__init__ | [
"module",
"class:IPManager:0",
"class:IPBridgeManager:0",
"method:__init__:0"
] | 0 | 828 | 829 | 8 | 33 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"IPManager",
"IPManager.IPBridgeManager"
] | [
"class IPManager:\n ...\n",
"class IPBridgeManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 9269d5ba9fff7d1420bcb361313dfbf576ae70e84474fd151c54f2d3e773d4c9 | 7398c0cc6d955211ec8a9b8206c2ac7b2565f6eb79ca3bd7c9598d5864393801 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | add | IPManager.IPBridgeManager.add | [
"module",
"class:IPManager:0",
"class:IPBridgeManager:0",
"method:add:0"
] | 0 | 831 | 837 | 8 | 59 | false | false | def add(self, name, hwaddr=None):
...
| [] | args = {
'name': name,
'hwaddr': hwaddr,
}
return self._client.json("ip.bridge.add", args)
| def add(self, name, hwaddr=None):
args = {
'name': name,
'hwaddr': hwaddr,
}
return self._client.json("ip.bridge.add", args)
| 42e3010078f3b6ea5dae34a21dde01e3914dd727eed406fbd2ff5182c8b6f0be | 42e3010078f3b6ea5dae34a21dde01e3914dd727eed406fbd2ff5182c8b6f0be | be7b61d081fe1839d2da4624600879f9808078dca85570cfa90b3102d43d975d | 1b3d9ed255925bfaa8d6c958095ca815d68e8bdb5677ede2d5aba336a9269ac2 | null | [
"IPManager",
"IPManager.IPBridgeManager"
] | [
"class IPManager:\n ...\n",
"class IPBridgeManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 6a9c430020cf42565caf31e291caaf011090149864ab8ecccc9e5ec9940595d9 | 7398c0cc6d955211ec8a9b8206c2ac7b2565f6eb79ca3bd7c9598d5864393801 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | delete | IPManager.IPBridgeManager.delete | [
"module",
"class:IPManager:0",
"class:IPBridgeManager:0",
"method:delete:0"
] | 0 | 839 | 844 | 8 | 59 | false | false | def delete(self, name):
...
| [] | args = {
'name': name,
}
return self._client.json("ip.bridge.del", args)
| def delete(self, name):
args = {
'name': name,
}
return self._client.json("ip.bridge.del", args)
| a6ccefbea3c28c6f518fc3fa7f9849602ad3d348fc26575f6fb5c2fa5e729b06 | a6ccefbea3c28c6f518fc3fa7f9849602ad3d348fc26575f6fb5c2fa5e729b06 | 3091a8b655f72b225d5e764d05604383dbee9269ca7c86124a582d82c8474b9e | 1b95307742659cb562a4f4b3cb63ac8517667ce015e15fa1faef62df4ed682d6 | null | [
"IPManager",
"IPManager.IPBridgeManager"
] | [
"class IPManager:\n ...\n",
"class IPBridgeManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b35d02c16993a5cba89c3400fd4b16bff36111e6d25faffb640e5b7f8e6fd958 | 7398c0cc6d955211ec8a9b8206c2ac7b2565f6eb79ca3bd7c9598d5864393801 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | addif | IPManager.IPBridgeManager.addif | [
"module",
"class:IPManager:0",
"class:IPBridgeManager:0",
"method:addif:0"
] | 0 | 846 | 852 | 8 | 61 | false | false | def addif(self, name, inf):
...
| [] | args = {
'name': name,
'inf': inf,
}
return self._client.json('ip.bridge.addif', args)
| def addif(self, name, inf):
args = {
'name': name,
'inf': inf,
}
return self._client.json('ip.bridge.addif', args)
| 2c89da844956fad92fa0cde2eca0e8e199be9fda416d72556074e87f4c96271c | 2c89da844956fad92fa0cde2eca0e8e199be9fda416d72556074e87f4c96271c | e36b86e7a113002958d650c30d600985e7eb20b9e99ead3b60becb3abdf4e00c | 92952ebc23d8084c3911018d921536f1a71790c72059cadc8c018ca7dff6d74f | null | [
"IPManager",
"IPManager.IPBridgeManager"
] | [
"class IPManager:\n ...\n",
"class IPBridgeManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | b73fa25abba614b1e35a6b1f7b2a31d9aaf4fb8b14af6d1517bfcfe0730258c7 | 7398c0cc6d955211ec8a9b8206c2ac7b2565f6eb79ca3bd7c9598d5864393801 | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | delif | IPManager.IPBridgeManager.delif | [
"module",
"class:IPManager:0",
"class:IPBridgeManager:0",
"method:delif:0"
] | 0 | 854 | 860 | 8 | 61 | false | false | def delif(self, name, inf):
...
| [] | args = {
'name': name,
'inf': inf,
}
return self._client.json('ip.bridge.delif', args)
| def delif(self, name, inf):
args = {
'name': name,
'inf': inf,
}
return self._client.json('ip.bridge.delif', args)
| 90ee477d4470f567187d61973007b23d7ff4d9154b173163a6c7990b0a5d790b | 90ee477d4470f567187d61973007b23d7ff4d9154b173163a6c7990b0a5d790b | 1003859567601ad1e46c6b0e242db5c456bab8433e949300afcfdc47fd5a9811 | 1e8bdda200b57258053f7ec2c6f5663e64006b118ebbc722d1529777ec1d2e1a | null | [
"IPManager",
"IPManager.IPBridgeManager"
] | [
"class IPManager:\n ...\n",
"class IPBridgeManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 0667d71f7338335b989488d877b8fde1b6ecf22477bd8ba55ad04708cf02328d | 3308f0faff7452debb162bdc09f8bbb0da6fb2bae1d988c4a784c4cae63de4da | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | IPLinkManager | IPManager.IPLinkManager | [
"module",
"class:IPManager:0",
"class:IPLinkManager:0"
] | 0 | 862 | 886 | 4 | 56 | false | true | class IPLinkManager:
...
| [] | def __init__(self, client):
...
def up(self, link):
...
def down(self, link):
...
def name(self, link, name):
...
def list(self):
...
| class IPLinkManager:
def __init__(self, client):
...
def up(self, link):
...
def down(self, link):
...
def name(self, link, name):
...
def list(self):
...
| 4207e94970bfd8a7a7ed644acbb195f66709b79739d4752c4afc3b4f1e23cd1d | 3b36ac55d33b8ac340465f88846ff6664624b9baf7f4c778c0f300f76709828c | ec6f003a1f58e197cb027ffec812cef86455dd8d8cf5e9b661517b468ac5d119 | 6d133e738fee6b7f93f53d1818eeee5bb560bad9563ed84c712ed6c2d8f66e90 | 13bc43747725a98e95edd1c9b974551ad8c080e0e6bbfcedcfc51cc337ab57af | [
"IPManager"
] | [
"class IPManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 4bc411cd20699a3c450170b5f26e56b9b1ba3a752bb0927b255f7fe70eb1ac31 | 0667d71f7338335b989488d877b8fde1b6ecf22477bd8ba55ad04708cf02328d | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | IPManager.IPLinkManager.__init__ | [
"module",
"class:IPManager:0",
"class:IPLinkManager:0",
"method:__init__:0"
] | 0 | 863 | 864 | 8 | 33 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"IPManager",
"IPManager.IPLinkManager"
] | [
"class IPManager:\n ...\n",
"class IPLinkManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | fe4623ea67192085c8791634b66462b96a605feb1844ee2d74be75b253d6ba4c | 0667d71f7338335b989488d877b8fde1b6ecf22477bd8ba55ad04708cf02328d | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | up | IPManager.IPLinkManager.up | [
"module",
"class:IPManager:0",
"class:IPLinkManager:0",
"method:up:0"
] | 0 | 866 | 870 | 8 | 56 | false | false | def up(self, link):
...
| [] | args = {
'name': link,
}
return self._client.json('ip.link.up', args)
| def up(self, link):
args = {
'name': link,
}
return self._client.json('ip.link.up', args)
| 667f2a8fb3f4680b60ec507fbfce3ab695161792cc86530ead0e087f0870f9d3 | 667f2a8fb3f4680b60ec507fbfce3ab695161792cc86530ead0e087f0870f9d3 | 870decad57e19b9af2163b22fcdf8253a088ae5f3ecefd8f3076e359e95d7f11 | cda80a3135623d24dc837f48a2f80673fe9f6656c01ca606e7b323dd9bd51ab8 | null | [
"IPManager",
"IPManager.IPLinkManager"
] | [
"class IPManager:\n ...\n",
"class IPLinkManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | ca1099003ee268d8e47975f1fc5cfd222144d132407e654c1844366ba92c9227 | 0667d71f7338335b989488d877b8fde1b6ecf22477bd8ba55ad04708cf02328d | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | down | IPManager.IPLinkManager.down | [
"module",
"class:IPManager:0",
"class:IPLinkManager:0",
"method:down:0"
] | 0 | 872 | 876 | 8 | 58 | false | false | def down(self, link):
...
| [] | args = {
'name': link,
}
return self._client.json('ip.link.down', args)
| def down(self, link):
args = {
'name': link,
}
return self._client.json('ip.link.down', args)
| ecad0057e23793b73d3e5a60875c94e5a23f0bb20a12879157cc5dd5b48d6ff9 | ecad0057e23793b73d3e5a60875c94e5a23f0bb20a12879157cc5dd5b48d6ff9 | 8cdf8931d7f625b52ebe6b796e14548be21a2767e69a8096c2824004898f7c70 | d79d1b716a58f69a36c056eb2a2ea22a33a2bfef0af0fae2825cd2131cb65821 | null | [
"IPManager",
"IPManager.IPLinkManager"
] | [
"class IPManager:\n ...\n",
"class IPLinkManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 122d1f2d69dd6052a951288169ad7daca6ab0599b305a795c770e71817da90d5 | 0667d71f7338335b989488d877b8fde1b6ecf22477bd8ba55ad04708cf02328d | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | name | IPManager.IPLinkManager.name | [
"module",
"class:IPManager:0",
"class:IPLinkManager:0",
"method:name:0"
] | 0 | 878 | 883 | 8 | 58 | false | false | def name(self, link, name):
...
| [] | args = {
'name': link,
'new': name,
}
return self._client.json('ip.link.name', args)
| def name(self, link, name):
args = {
'name': link,
'new': name,
}
return self._client.json('ip.link.name', args)
| d49fed7816f401801fd4934a3012dc945d5448dac8d1ded82d859d798244dd7e | d49fed7816f401801fd4934a3012dc945d5448dac8d1ded82d859d798244dd7e | f36eb1834787d5f28f0f815e7e92a32dc550f5a43a8691d91a2d861adbcce0dc | 2ffea7b511b25b5f2af1c6a525a5b456ac493ae8debca5d469455afa98978bae | null | [
"IPManager",
"IPManager.IPLinkManager"
] | [
"class IPManager:\n ...\n",
"class IPLinkManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 7520e73b4c92df442d725a530a47b9aa8e7b252e84317d281c20b93fcdb5ae47 | 0667d71f7338335b989488d877b8fde1b6ecf22477bd8ba55ad04708cf02328d | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | list | IPManager.IPLinkManager.list | [
"module",
"class:IPManager:0",
"class:IPLinkManager:0",
"method:list:0"
] | 0 | 885 | 886 | 8 | 56 | false | false | def list(self):
...
| [] | return self._client.json('ip.link.list', {})
| def list(self):
return self._client.json('ip.link.list', {})
| a7b15abc75c9177513bddf47d1eefb49a01b3532b33187a4b90d202aa066a731 | a7b15abc75c9177513bddf47d1eefb49a01b3532b33187a4b90d202aa066a731 | 4b274af03beb91cb7ea439b8e2f8f64ea0039146608e2eb4d5a5122f30fd220f | 986c900ee87322ef6a0aba7e463faa4dd74c74081a6f2f9d600b6b8395c1acf1 | null | [
"IPManager",
"IPManager.IPLinkManager"
] | [
"class IPManager:\n ...\n",
"class IPLinkManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | abcb13e499dfe7114747959c4cd16394d3da06f24216f11ed8d7218103e5780e | 3308f0faff7452debb162bdc09f8bbb0da6fb2bae1d988c4a784c4cae63de4da | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | class | IPAddrManager | IPManager.IPAddrManager | [
"module",
"class:IPManager:0",
"class:IPAddrManager:0"
] | 0 | 888 | 910 | 4 | 58 | false | true | class IPAddrManager:
...
| [] | def __init__(self, client):
...
def add(self, link, ip):
...
def delete(self, link, ip):
...
def list(self, link):
...
| class IPAddrManager:
def __init__(self, client):
...
def add(self, link, ip):
...
def delete(self, link, ip):
...
def list(self, link):
...
| cfa4ab15f249815170635be1f1ff26f19b87b1773e6c602c10f06528724827bd | ddd34cab3edeedcb69b4bc2a092f41fdd4e0a21e5b1c58e5cfa0ca7472e6ea67 | b64cd4ef5d4b4013a15b9385e6f328b6f1cd7aa668047bed6638441f29ffdcfb | 6398e50fa50f4ef816a29dfcf890378269c6a379a3c8ae95da52363149aba436 | 03d5140e6cee98b55be2f9d4b57399763b4b975d2f5ab2b40030cbd18e5256f9 | [
"IPManager"
] | [
"class IPManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | 004779169c3d12fc2d96158ea09d4a03afe53091cdcf7d700ed11d966c2da9c3 | abcb13e499dfe7114747959c4cd16394d3da06f24216f11ed8d7218103e5780e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | __init__ | IPManager.IPAddrManager.__init__ | [
"module",
"class:IPManager:0",
"class:IPAddrManager:0",
"method:__init__:0"
] | 0 | 889 | 890 | 8 | 33 | false | false | def __init__(self, client):
...
| [] | self._client = client
| def __init__(self, client):
self._client = client
| 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 951bb411df19336c8251faa1bc673b435643da7cec9616ead11ad7f8e93a9f0f | 72bcaf350c584641137e34170d85cae850c6bc6aca4086a87cb7509486ad6ebd | 83fab20cb7c7c7c4e4c1d13b8cb3fa73abbccfced268767200ac06aab5ca1cb0 | null | [
"IPManager",
"IPManager.IPAddrManager"
] | [
"class IPManager:\n ...\n",
"class IPAddrManager:\n ...\n"
] | [] | [] |
4 | eb7eefefffb9df7700d2e8748689c054bc8492433974f5f90145a88b695f141f | da7299c0858b7a8a07e8f4a9df218d6e4082d0bb67c4ed72bcbc01580b80df0c | abcb13e499dfe7114747959c4cd16394d3da06f24216f11ed8d7218103e5780e | 0-core-client | /0-core-client-1.1.0a4.tar.gz/0-core-client-1.1.0a4/zeroos/core0/client/client.py | client.py | method | add | IPManager.IPAddrManager.add | [
"module",
"class:IPManager:0",
"class:IPAddrManager:0",
"method:add:0"
] | 0 | 892 | 897 | 8 | 57 | false | false | def add(self, link, ip):
...
| [] | args = {
'name': link,
'ip': ip,
}
return self._client.json('ip.addr.add', args)
| def add(self, link, ip):
args = {
'name': link,
'ip': ip,
}
return self._client.json('ip.addr.add', args)
| 7da682f683e805e70612986ee2109be8cfe0b4b65ccacf8490bb255d10923923 | 7da682f683e805e70612986ee2109be8cfe0b4b65ccacf8490bb255d10923923 | d2c33346308140a93cc9a6b23fded44a7424d552f19e560d177ca1745a2165dd | 518eeacb984be7e1337c62dc08e5aee235ea90266fe0c780d6bfd24b6581d089 | null | [
"IPManager",
"IPManager.IPAddrManager"
] | [
"class IPManager:\n ...\n",
"class IPAddrManager:\n ...\n"
] | [] | [] |
PyPI Code Graphs (v4)
A complete, scope-aware Python graph derivative of the pinned vikp/pypi_clean snapshot. This release packages source text, file records, definition nodes, and static relationships as four linked Parquet tables. It is a graph view of that snapshot, not a current crawl of every package on PyPI.
| Configuration | Rows | Contents |
|---|---|---|
source |
2,438,172 | Exact upstream-cleaned source records, including non-Python files |
files |
1,769,504 | Python files, provenance, parse status, counts, content hashes |
units (default) |
35,212,956 | Module, class, function, method, and nested-function nodes |
edges |
126,728,300 | Containment and aggregated static call relationship records |
The Python file table covers 199,268 distinct package names. There are 133,264,997 syntactic call occurrences, aggregated into call relationship rows. A relationship row is not necessarily a single resolved binary edge.
Each configuration has 64 Zstandard-compressed Parquet shards. Shard numbers align
across the four tables; every file's nodes and relationships stay in its source
shard. Native schema version 4 is preserved. Release version is 1.0.0.
manifest.json records exact per-shard sizes, row counts, SHA-256 digests, extraction
options, source revision, and the extractor fingerprint. partition-map.json maps
the original 2,496 work partitions to published row groups.
Load
from datasets import load_dataset
repo = "IntellAgents/pypi-code-graphs-v4"
units = load_dataset(repo, "units", split="train", streaming=True)
print(next(iter(units)))
# Other linked tables use the same interface:
files = load_dataset(repo, "files", split="train", streaming=True)
edges = load_dataset(repo, "edges", split="train", streaming=True)
source = load_dataset(repo, "source", split="train", streaming=True)
Use revision=<commit SHA> to pin a release. Streaming avoids downloading the full
corpus. The train split is a storage convention, not a validated training split.
Do not use random node/row splits to measure cross-package generalization: related
packages, vendored code, and near duplicates can leak across them. Construct splits
by package and code families before training or evaluation.
For a complete local shard and a per-file graph, see
examples/pypi_graphs.py. It downloads only the requested
shard, retains candidate lists, and can retrieve the corresponding source record.
The files are ordinary Parquet; no custom dataset loading script is required.
Graph interpretation
source_id joins files, units, and edges and identifies one source file.
unit_id identifies a definition occurrence. parent_unit_id supplies the definition
hierarchy; a synthetic module node has no parent. This is a per-file definition
and static-call graph, not an expression-level AST, a dataflow graph, or a resolved
whole-package runtime call graph.
contains: one parent and one child;target_unit_idsis a singleton. These hierarchy links are exact for the extracted definitions.calls: a syntactic call expression belongs tosource_unit_idand retains its resolution label.target_unit_idscan be empty, singleton, or contain alternative local targets. Do not turn alternative candidates into multiple confirmed edges.- Resolution labels are
local,local_heuristic,import,builtin,local_unresolved, andunresolved. The same-classself/clsshortcut is labeledlocal_heuristic; general chained attribute calls are not assumed resolved. candidate_qualified_namespreserves external/builtin/ambiguous name evidence without inventing nodes for external packages.- Repeated calls with the same aggregation key are collapsed;
occurrencesrecords multiplicity andline/columnretain the first position. This is not a complete call-site trace.call_site_kinddistinguishesbody,decorator,default,annotation,class_header,class_body, andmodule_bodycontexts.
See SCHEMA.md and schemas.json for fields and types.
The raw tables keep topology separate from code-bearing node attributes, so they
can support embedding and graph learning views without serializing target IDs into
embedding text. A future model-specific view still needs deliberate feature masking,
negative sampling, and leakage-safe splits; those choices are not baked into this release.
Code representation and identity
LibCST preserves identifier spelling, literals, docstrings, annotations, decorators,
imports and ordering. Ordinary comments and blank lines are removed by the normalizer;
shebang/encoding directives and type comments are retained when present upstream.
No identifiers are alpha-renamed and no code is executed. Isolated unit representations
stub nested child definitions while retaining surrounding executable and declarative
statements. Full-file normalized text is omitted by this build's default; retrieve
the upstream-cleaned text through the source table.
source_id is a versioned deterministic digest of (package, path, filename).
content_hash separately detects changes to source text. unit_id incorporates the
source identity and scoped definition path with same-name occurrence ordinals; it
does not merge identical code in different files. Scoped structural hashes describe
the full unit, isolated unit, header, isolated body, and ordered child structure.
They remain sensitive to names, literals, and annotations; they are not semantic
equivalence proofs.
Coverage and failures
| File status | Files | Interpretation |
|---|---|---|
ok |
1,733,207 | Completed extraction |
syntax_error |
35,202 | Retained file record; no graph |
skipped_pathological |
1,088 | Above the 1,000,000-character limit; retained file record |
analysis_error |
6 | Retained unexpected-error record; no graph |
metadata_error |
1 | Partial graph: 203 definitions and 202 containment links; no call analysis |
There are 1,733,208 module roots, including the partial metadata-error graph.
Consumers requiring fully analyzed files should filter files.parse_status == "ok"
and join that filter into the other tables. Failed/skipped files remain recoverable
from the source table. Python-2 syntax was not automatically converted.
Provenance and validation
Upstream: vikp/pypi_clean at
c59858d4234adcf51e843623cdca78ed9ae094c5. The upstream card describes a selection
of Python, Markdown, reStructuredText and rendered notebooks from package archives,
with leading comments/licenses removed. The source configuration is a byte-for-byte
copy of its 64 Parquet files; it is not the original unmodified package archives.
Extraction used CPython 3.14.6, LibCST 1.9.0, and PyArrow 25.0.0.
The exact extractor modules are included under extractor/.
Transform fingerprint:
d63b9351e4ca57e605b58ad05c7a81d2aade032340fd95564c98944f8ed44b76.
Release checks covered all partitions and all values: completed-build checksums,
upstream source checksums, globally unique file/node IDs, schema/version validity,
source spans, per-file counts, endpoint locality, the complete containment hierarchy,
and full Arrow value equality after repacking. See
audit/corpus-audit.json,
audit/span-bounds.json,
audit/diagnostic-check.json, and manifest.json.
Static resolution labels express the extractor's evidence, not a guarantee of runtime behavior.
Licensing and reuse
There is no blanket license grant for the collected package code. The upstream
snapshot does not supply per-package license metadata and reports removing leading
license comments. Package names and archive paths are retained to help users recover
the original projects and their terms. This release does not establish that every
package is permissively licensed. See LICENSE_NOTES.md.
For attribution, cite this repository with its commit SHA, the pinned upstream
snapshot, and the originating packages as applicable. Corrections can be reported
through the dataset's community discussions, preferably with source_id/unit_id.
- Downloads last month
- -