Skip to content

Commit

Permalink
Merge pull request #631 from threefoldtech/development
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
rawdaGastan authored Dec 27, 2022
2 parents 3ee58a2 + 637f4f9 commit 0409148
Show file tree
Hide file tree
Showing 40 changed files with 401 additions and 439 deletions.
4 changes: 2 additions & 2 deletions docs/api/jumpscale/clients/redis/redis.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h1 class="title">Module <code>jumpscale.clients.redis.redis</code></h1>
self.__client = Redis(self.hostname, self.port)

return self.__client

def is_running(self):
try:
return self.redis_client.ping()
Expand Down Expand Up @@ -154,7 +154,7 @@ <h2 id="args">Args</h2>
self.__client = Redis(self.hostname, self.port)

return self.__client

def is_running(self):
try:
return self.redis_client.ping()
Expand Down
10 changes: 5 additions & 5 deletions docs/api/jumpscale/clients/sshclient/sshclient.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h2 id="creating-sshclient-using-that-key-and-executing-commands">Creating sshcl

@property
def _sshkey(self):
&#34;&#34;&#34; Get sshkey client that you have loaded
&#34;&#34;&#34;Get sshkey client that you have loaded
e.g
JS-NG&gt; localconnection = j.clients.sshclient.new(&#34;localconnection&#34;)
JS-NG&gt; localconnection.sshkey = &#34;xmonader&#34;
Expand Down Expand Up @@ -138,7 +138,7 @@ <h2 id="creating-sshclient-using-that-key-and-executing-commands">Creating sshcl
return self.__client

def reset_connection(self):
&#34;&#34;&#34; Reset the connection
&#34;&#34;&#34;Reset the connection
e.g
localconnection = j.clients.sshclient.new(&#34;localconnection&#34;)
localconnection.reset_connection()
Expand Down Expand Up @@ -224,7 +224,7 @@ <h2 id="args">Args</h2>

@property
def _sshkey(self):
&#34;&#34;&#34; Get sshkey client that you have loaded
&#34;&#34;&#34;Get sshkey client that you have loaded
e.g
JS-NG&gt; localconnection = j.clients.sshclient.new(&#34;localconnection&#34;)
JS-NG&gt; localconnection.sshkey = &#34;xmonader&#34;
Expand Down Expand Up @@ -255,7 +255,7 @@ <h2 id="args">Args</h2>
return self.__client

def reset_connection(self):
&#34;&#34;&#34; Reset the connection
&#34;&#34;&#34;Reset the connection
e.g
localconnection = j.clients.sshclient.new(&#34;localconnection&#34;)
localconnection.reset_connection()
Expand Down Expand Up @@ -531,7 +531,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def reset_connection(self):
&#34;&#34;&#34; Reset the connection
&#34;&#34;&#34;Reset the connection
e.g
localconnection = j.clients.sshclient.new(&#34;localconnection&#34;)
localconnection.reset_connection()
Expand Down
18 changes: 9 additions & 9 deletions docs/api/jumpscale/clients/sshkey/sshkey.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3 id="writing-ssh-keys-to-files-system">Writing ssh keys to files system</h3>
self.load_from_file_system()

def load_from_file_system(self):
&#34;&#34;&#34; Load public key and private key from files using private key path and public key path
&#34;&#34;&#34;Load public key and private key from files using private key path and public key path
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.load_from_file_system()
Expand Down Expand Up @@ -122,7 +122,7 @@ <h3 id="writing-ssh-keys-to-files-system">Writing ssh keys to files system</h3>

@property
def public_key_path(self):
&#34;&#34;&#34; Get the public key path
&#34;&#34;&#34;Get the public key path
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.public_key_path -&gt; &#34;/root/.config/jumpscale/sshkeys/tU59lc6P.pub&#34;
Expand All @@ -133,7 +133,7 @@ <h3 id="writing-ssh-keys-to-files-system">Writing ssh keys to files system</h3>
return &#34;{}.pub&#34;.format(self.private_key_path)

def write_to_filesystem(self):
&#34;&#34;&#34; Write public key and private key to files using private key path and public key path.
&#34;&#34;&#34;Write public key and private key to files using private key path and public key path.
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.write_to_filesystem()
Expand Down Expand Up @@ -204,7 +204,7 @@ <h2 id="args">Args</h2>
self.load_from_file_system()

def load_from_file_system(self):
&#34;&#34;&#34; Load public key and private key from files using private key path and public key path
&#34;&#34;&#34;Load public key and private key from files using private key path and public key path
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.load_from_file_system()
Expand Down Expand Up @@ -235,7 +235,7 @@ <h2 id="args">Args</h2>

@property
def public_key_path(self):
&#34;&#34;&#34; Get the public key path
&#34;&#34;&#34;Get the public key path
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.public_key_path -&gt; &#34;/root/.config/jumpscale/sshkeys/tU59lc6P.pub&#34;
Expand All @@ -246,7 +246,7 @@ <h2 id="args">Args</h2>
return &#34;{}.pub&#34;.format(self.private_key_path)

def write_to_filesystem(self):
&#34;&#34;&#34; Write public key and private key to files using private key path and public key path.
&#34;&#34;&#34;Write public key and private key to files using private key path and public key path.
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.write_to_filesystem()
Expand Down Expand Up @@ -448,7 +448,7 @@ <h2 id="returns">Returns</h2>
</summary>
<pre><code class="python">@property
def public_key_path(self):
&#34;&#34;&#34; Get the public key path
&#34;&#34;&#34;Get the public key path
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.public_key_path -&gt; &#34;/root/.config/jumpscale/sshkeys/tU59lc6P.pub&#34;
Expand Down Expand Up @@ -522,7 +522,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def load_from_file_system(self):
&#34;&#34;&#34; Load public key and private key from files using private key path and public key path
&#34;&#34;&#34;Load public key and private key from files using private key path and public key path
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.load_from_file_system()
Expand All @@ -544,7 +544,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def write_to_filesystem(self):
&#34;&#34;&#34; Write public key and private key to files using private key path and public key path.
&#34;&#34;&#34;Write public key and private key to files using private key path and public key path.
e.g
ssh_cl = j.clients.sshkey.get(&#34;ssh_test&#34;)
ssh_cl.write_to_filesystem()
Expand Down
6 changes: 3 additions & 3 deletions docs/api/jumpscale/core/base/factory.html
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ <h1 class="title">Module <code>jumpscale.core.base.factory</code></h1>
raise ValueError(&#34;at least one query parameter is required, e.g. age=10&#34;)

new_cursor, count, result = self.store.find(cursor_=cursor_, limit_=limit_, **query)
return new_cursor, count, (self._get_object_from_config(data[KEY_FIELD_NAME], data) for data in result)
return (new_cursor, count, (self._get_object_from_config(data[KEY_FIELD_NAME], data) for data in result))

def list_all(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1478,7 +1478,7 @@ <h2 id="args">Args</h2>
raise ValueError(&#34;at least one query parameter is required, e.g. age=10&#34;)

new_cursor, count, result = self.store.find(cursor_=cursor_, limit_=limit_, **query)
return new_cursor, count, (self._get_object_from_config(data[KEY_FIELD_NAME], data) for data in result)
return (new_cursor, count, (self._get_object_from_config(data[KEY_FIELD_NAME], data) for data in result))

def list_all(self):
&#34;&#34;&#34;
Expand Down Expand Up @@ -1657,7 +1657,7 @@ <h2 id="returns">Returns</h2>
raise ValueError(&#34;at least one query parameter is required, e.g. age=10&#34;)

new_cursor, count, result = self.store.find(cursor_=cursor_, limit_=limit_, **query)
return new_cursor, count, (self._get_object_from_config(data[KEY_FIELD_NAME], data) for data in result)</code></pre>
return (new_cursor, count, (self._get_object_from_config(data[KEY_FIELD_NAME], data) for data in result))</code></pre>
</details>
</dd>
<dt id="jumpscale.core.base.factory.StoredFactory.get_instance_property"><code class="name flex">
Expand Down
12 changes: 3 additions & 9 deletions docs/api/jumpscale/core/base/store/whooshfts.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ <h1 class="title">Module <code>jumpscale.core.base.store.whooshfts</code></h1>
return self.location.type._fields.items()

def get_schema(self):
schema_fields = {
KEY_FIELD_NAME: fields.ID(unique=True, stored=True),
}
schema_fields = {KEY_FIELD_NAME: fields.ID(unique=True, stored=True)}

for name, field in self.type_fields:
field_type_name = field.__class__.__name__
Expand Down Expand Up @@ -288,9 +286,7 @@ <h2 id="args">Args</h2>
return self.location.type._fields.items()

def get_schema(self):
schema_fields = {
KEY_FIELD_NAME: fields.ID(unique=True, stored=True),
}
schema_fields = {KEY_FIELD_NAME: fields.ID(unique=True, stored=True)}

for name, field in self.type_fields:
field_type_name = field.__class__.__name__
Expand Down Expand Up @@ -498,9 +494,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def get_schema(self):
schema_fields = {
KEY_FIELD_NAME: fields.ID(unique=True, stored=True),
}
schema_fields = {KEY_FIELD_NAME: fields.ID(unique=True, stored=True)}

for name, field in self.type_fields:
field_type_name = field.__class__.__name__
Expand Down
18 changes: 4 additions & 14 deletions docs/api/jumpscale/core/config/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,7 @@ <h2 id="getset">Get/Set</h2>
&#34;debug&#34;: True,
&#34;shell&#34;: &#34;ptpython&#34;,
&#34;logging&#34;: {
&#34;default&#34;: {
&#34;enabled&#34;: True,
&#34;level&#34;: 10,
},
&#34;default&#34;: {&#34;enabled&#34;: True, &#34;level&#34;: 10},
&#34;redis&#34;: {
&#34;enabled&#34;: True,
&#34;level&#34;: 15,
Expand All @@ -214,9 +211,7 @@ <h2 id="getset">Get/Set</h2>
},
&#34;factory&#34;: {&#34;always_reload&#34;: False},
&#34;store&#34;: &#34;filesystem&#34;,
&#34;threebot&#34;: {
&#34;default&#34;: &#34;&#34;,
},
&#34;threebot&#34;: {&#34;default&#34;: &#34;&#34;},
}


Expand Down Expand Up @@ -444,10 +439,7 @@ <h2 id="returns">Returns</h2>
&#34;debug&#34;: True,
&#34;shell&#34;: &#34;ptpython&#34;,
&#34;logging&#34;: {
&#34;default&#34;: {
&#34;enabled&#34;: True,
&#34;level&#34;: 10,
},
&#34;default&#34;: {&#34;enabled&#34;: True, &#34;level&#34;: 10},
&#34;redis&#34;: {
&#34;enabled&#34;: True,
&#34;level&#34;: 15,
Expand All @@ -472,9 +464,7 @@ <h2 id="returns">Returns</h2>
},
&#34;factory&#34;: {&#34;always_reload&#34;: False},
&#34;store&#34;: &#34;filesystem&#34;,
&#34;threebot&#34;: {
&#34;default&#34;: &#34;&#34;,
},
&#34;threebot&#34;: {&#34;default&#34;: &#34;&#34;},
}</code></pre>
</details>
</dd>
Expand Down
8 changes: 1 addition & 7 deletions docs/api/jumpscale/core/logging/logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ <h1 class="title">Module <code>jumpscale.core.logging.logging</code></h1>
from jumpscale.loader import j


LEVELS = {
10: &#34;DEBUG&#34;,
20: &#34;INFO&#34;,
30: &#34;WARNING&#34;,
40: &#34;ERROR&#34;,
50: &#34;CRITICAL&#34;,
}
LEVELS = {10: &#34;DEBUG&#34;, 20: &#34;INFO&#34;, 30: &#34;WARNING&#34;, 40: &#34;ERROR&#34;, 50: &#34;CRITICAL&#34;}

# init is kept as a name for backward compatibility
DEFAULT_APP_NAME = &#34;init&#34;
Expand Down
Loading

0 comments on commit 0409148

Please sign in to comment.