Nsot

Latest version: v1.4.6

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 16 of 20

0.8.1

------------------

* Implement network/address allocation endpoints for Network objects.
* For database models the following methods have been added:

+ ``get_next_address()`` - Returns a list of next available a addresses
(fixes 49)
+ ``get_next_network()`` - Returns a list of next available networks
matching the provided prefix_length. (fixes 48)

* For the REST API, the following endpoints have been added to Network
objects in detail view (e.g. ``GET /api/sites/1/networks/10/:endpoint1``):

+ ``next_address`` - Returns a list of next available a addresses
+ ``next_network`` - Returns a list of next available networks
matching the provided prefix_length.
+ ``parent`` - Return the parent Network for this Network

+ Updated all of the tree traversal methods to explicitly order results
by (network_address, prefix_length) so that results are in tree order.
+ Corrected a typo in the README file (fixes 69)
+ All new functionality is completely unit-tested!

0.8

----------------

* Implement tree traversal endpoints for Network objects.
* For database models the following methods have been added:

+ ``is_child_node()`` - Returns whether Network is a child node
+ ``is_leaf_node()`` - Returns whether Network has no children
+ ``is_root_node()`` - Returns whether Network has no parent
+ ``get_ancestors()`` - Return all parents for a Network
+ ``get_children()`` - Return immediate children for a Network
+ ``get_descendents()`` - Return ALL children for a Network
+ ``get_root()`` - Return the root node of this Network
+ ``get_siblings()`` - Returns Networks with the same parent

* For the REST API, the following endpoints have been added to Network
objects detail view (e.g. ``GET /api/sites/1/networks/10/:endpoint``):

+ ``ancestors`` - Return all parents for a Network
+ ``children`` - Return immediate children for a Network
+ ``descendents`` - Return ALL children for a Network
+ ``root`` - Return the root node of this Network
+ ``siblings`` - Returns Networks with the same parent

* All new functionality is completely unit-tested!

0.7.4

------------------

* Multiple bug fixes related to looking up Attributes using set queries.
* Fix 66 - Handle 500 error when multiple Sites contain an Attribute of the
same name.
* Fix 67 - Bugfix when an Attribute name isn't found when performing a set
query.
* Resource.objects.set_query() now takes an optional site_id argument
that will always be sent when called internally by the API.
* Added site_id to repr for Attribute objects to make it less confusing
when working with multiple sites containing Attributes of the same
name.
* Fixed a bug in Attribute.all_by_name() that would cause the last
Attribute matching the desired name, even if the site_id conflicted
with the parent resource object. Attribute.all_by_name() now requires
a site argument.
* If a set query raises an exception (such as when no matching Attribute
is found), an empty queryset is returned.

0.7.3

------------------

* Fix 58: Typo in permissions docs
* Fix 64: New command to generate key

0.7.2

------------------

* Fix 62 - 500 error when API authenticate is malformed.

0.7.1

------------------

* Remove need to "collectstatic", remove 'nsot.log' log handler.

+ Static files will default to being served from within the nsot
library itself, eliminating the need to colectstatic.
+ nsot-server will no longer drop an empty nsot.log file in the
directory from which it is called.

Page 16 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.