<liclass="toctree-l1 current"><aclass="current reference internal"href="#"><codeclass="docutils literal notranslate"><spanclass="pre">nest_backend</span></code> - Web API in Python</a><ul>
<liclass="toctree-l2"><aclass="reference internal"href="#module-nest_backend.gestione"><codeclass="docutils literal notranslate"><spanclass="pre">.gestione</span></code> - Metodi di utility</a></li>
<spanid="nest-backend-web-api-in-python"></span><h1><codeclass="docutils literal notranslate"><spanclass="pre">nest_backend</span></code> - Web API in Python<aclass="headerlink"href="#module-nest_backend"title="Link a questa intestazione">¶</a></h1>
<spanid="gestione-metodi-di-utility"></span><h2><codeclass="docutils literal notranslate"><spanclass="pre">.gestione</span></code> - Metodi di utility<aclass="headerlink"href="#module-nest_backend.gestione"title="Link a questa intestazione">¶</a></h2>
<p>Gestione adds many fancy thingamajigs to the flask application, such as a login system and such.</p>
<dlclass="py function">
<dtid="nest_backend.gestione.authenticate">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">authenticate</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">username</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">password</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.authenticate"title="Link a questa definizione">¶</a></dt>
<dd><p>Authentication method. It checks if the combination of username+password is a valid match. If not, it returns None.
:param username: the user’s email
:param password: the user’s password
:return: if the credentials are correct, it returns the user. Else, it returns None.</p>
</dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.identity">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">identity</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">payload</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.identity"title="Link a questa definizione">¶</a></dt>
<dd><p>Authentication verification method. It checks if the user is in fact registered on the server.
It is required by Flask-JWT, and shouldnt be used alone.
:param payload: the reqest payload.
:return: an User or None. It depends whether the user is actually registered on the platform.</p>
</dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.gen_password">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">gen_password</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">password</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.gen_password"title="Link a questa definizione">¶</a></dt>
<dd><p>It generates an hashed password.
:param password: the password that needs to be hashed.
:return: the password’s hash.</p>
</dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.find_user">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">find_user</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">email</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.find_user"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.admin_or_403">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">admin_or_403</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">f</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.admin_or_403"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.repository_auth">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">repository_auth</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">f</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.repository_auth"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">json_request_authorizer</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">json</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">serializable</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.json_request_authorizer"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">json_error</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">msg</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">code</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'errorUnknownError'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.json_error"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">json_success</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">data</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.json_success"title="Link a questa definizione">¶</a></dt>
<dd><p>An happy little function. Its happy because the operation was successful.
:param data: the thing you want to be returned
:return: a json formatted string</p>
</dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.error_handler">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">error_handler</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">e</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.error_handler"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="nest_backend.gestione.hashtag_validator">
<codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.gestione.</span></code><codeclass="sig-name descname"><spanclass="pre">hashtag_validator</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">hashtag</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.gestione.hashtag_validator"title="Link a questa definizione">¶</a></dt>
<spanid="database-database"></span><h2><codeclass="docutils literal notranslate"><spanclass="pre">.database</span></code> - Database<aclass="headerlink"href="#module-nest_backend.database"title="Link a questa intestazione">¶</a></h2>
<p>This module imports all the tables and the declarative base</p>
<spanid="base-estensione-flask"></span><h3><codeclass="docutils literal notranslate"><spanclass="pre">.base</span></code> - Estensione flask<aclass="headerlink"href="#module-nest_backend.database.base"title="Link a questa intestazione">¶</a></h3>
<spanid="tables-tabelle"></span><h3><codeclass="docutils literal notranslate"><spanclass="pre">.tables</span></code> - Tabelle<aclass="headerlink"href="#module-nest_backend.database.tables"title="Link a questa intestazione">¶</a></h3>
<p>This module contains all database classes.</p>
<dlclass="py class">
<dtid="nest_backend.database.tables.Alert">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Alert</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Alert"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.id"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py attribute">
<dtid="nest_backend.database.tables.Alert.name">
<codeclass="sig-name descname"><spanclass="pre">name</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.name"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py attribute">
<dtid="nest_backend.database.tables.Alert.limit">
<codeclass="sig-name descname"><spanclass="pre">limit</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.limit"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">window_size</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.window_size"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">evaluation_mode</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.evaluation_mode"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repository_id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.repository_id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repository</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.repository"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">notifications</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.notifications"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">conditions</span></code><aclass="headerlink"href="#nest_backend.database.tables.Alert.conditions"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Alert.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Alert.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Authorization</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Authorization"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">rid</span></code><aclass="headerlink"href="#nest_backend.database.tables.Authorization.rid"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">email</span></code><aclass="headerlink"href="#nest_backend.database.tables.Authorization.email"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repository</span></code><aclass="headerlink"href="#nest_backend.database.tables.Authorization.repository"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">user</span></code><aclass="headerlink"href="#nest_backend.database.tables.Authorization.user"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Authorization.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Authorization.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="nest_backend.database.tables.Composed">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Composed</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Composed"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">rid</span></code><aclass="headerlink"href="#nest_backend.database.tables.Composed.rid"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">snowflake</span></code><aclass="headerlink"href="#nest_backend.database.tables.Composed.snowflake"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repository</span></code><aclass="headerlink"href="#nest_backend.database.tables.Composed.repository"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">tweet</span></code><aclass="headerlink"href="#nest_backend.database.tables.Composed.tweet"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Composed.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="nest_backend.database.tables.Condition">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Condition</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Condition"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">type</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.type"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">content</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.content"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repository_id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.repository_id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repository</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.repository"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">tweets</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.tweets"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">alerts</span></code><aclass="headerlink"href="#nest_backend.database.tables.Condition.alerts"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Condition.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Condition.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="nest_backend.database.tables.Contains">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Contains</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Contains"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">cid</span></code><aclass="headerlink"href="#nest_backend.database.tables.Contains.cid"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">snowflake</span></code><aclass="headerlink"href="#nest_backend.database.tables.Contains.snowflake"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">condition</span></code><aclass="headerlink"href="#nest_backend.database.tables.Contains.condition"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">tweet</span></code><aclass="headerlink"href="#nest_backend.database.tables.Contains.tweet"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Contains.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Notification</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Notification"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Notification.id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">ora</span></code><aclass="headerlink"href="#nest_backend.database.tables.Notification.ora"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">alert_id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Notification.alert_id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">alert</span></code><aclass="headerlink"href="#nest_backend.database.tables.Notification.alert"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Notification.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Notification.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="nest_backend.database.tables.Repository">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Repository</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Repository"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">name</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.name"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">start</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.start"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">end</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.end"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">is_active</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.is_active"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">evaluation_mode</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.evaluation_mode"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">owner_id</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.owner_id"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">owner</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.owner"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">authorizations</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.authorizations"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">tweets</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.tweets"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">alerts</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.alerts"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">conditions</span></code><aclass="headerlink"href="#nest_backend.database.tables.Repository.conditions"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Repository.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Repository.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="nest_backend.database.tables.Tweet">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">Tweet</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Tweet"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">snowflake</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.snowflake"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">content</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.content"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">location</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.location"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py attribute">
<dtid="nest_backend.database.tables.Tweet.place">
<codeclass="sig-name descname"><spanclass="pre">place</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.place"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">poster</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.poster"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">insert_time</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.insert_time"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">post_time</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.post_time"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">image_url</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.image_url"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">repositories</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.repositories"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">conditions</span></code><aclass="headerlink"href="#nest_backend.database.tables.Tweet.conditions"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Tweet.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.Tweet.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="nest_backend.database.tables.User">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">User</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.User"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">email</span></code><aclass="headerlink"href="#nest_backend.database.tables.User.email"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">username</span></code><aclass="headerlink"href="#nest_backend.database.tables.User.username"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">password</span></code><aclass="headerlink"href="#nest_backend.database.tables.User.password"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">isAdmin</span></code><aclass="headerlink"href="#nest_backend.database.tables.User.isAdmin"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">owner_of</span></code><aclass="headerlink"href="#nest_backend.database.tables.User.owner_of"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">authorizations</span></code><aclass="headerlink"href="#nest_backend.database.tables.User.authorizations"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_json</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.User.to_json"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.User.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">MadeOf</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.MadeOf"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">aid</span></code><aclass="headerlink"href="#nest_backend.database.tables.MadeOf.aid"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
<dlclass="py attribute">
<dtid="nest_backend.database.tables.MadeOf.cid">
<codeclass="sig-name descname"><spanclass="pre">cid</span></code><aclass="headerlink"href="#nest_backend.database.tables.MadeOf.cid"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">alert</span></code><aclass="headerlink"href="#nest_backend.database.tables.MadeOf.alert"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">condition</span></code><aclass="headerlink"href="#nest_backend.database.tables.MadeOf.condition"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">__init__</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.MadeOf.__init__"title="Link a questa definizione">¶</a></dt>
<dd><p>A simple constructor that allows initialization from kwargs.</p>
<p>Sets attributes on the constructed instance using the names and
values in <codeclass="docutils literal notranslate"><spanclass="pre">kwargs</span></code>.</p>
<p>Only keys that are present as
attributes of the instance’s class are allowed. These could be,
for example, any mapped columns or relationships.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">ConditionType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.ConditionType"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">hashtag</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">0</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionType.hashtag"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">location</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">1</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionType.location"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">time</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">2</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionType.time"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">coordinates</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">3</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionType.coordinates"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">place</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">4</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionType.place"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">user</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">5</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionType.user"title="Link a questa definizione">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">OperationType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.OperationType"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">assign</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">3</span></em><aclass="headerlink"href="#nest_backend.database.tables.OperationType.assign"title="Link a questa definizione">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">nest_backend.database.tables.</span></code><codeclass="sig-name descname"><spanclass="pre">ConditionMode</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#nest_backend.database.tables.ConditionMode"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">all_or</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">0</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionMode.all_or"title="Link a questa definizione">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">all_and</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">1</span></em><aclass="headerlink"href="#nest_backend.database.tables.ConditionMode.all_and"title="Link a questa definizione">¶</a></dt>
<dd></dd></dl>
</dd></dl>
</div>
</div>
<divclass="section"id="routes-percorsi-api">
<h2><codeclass="docutils literal notranslate"><spanclass="pre">.routes</span></code> - Percorsi API<aclass="headerlink"href="#routes-percorsi-api"title="Link a questa intestazione">¶</a></h2>