Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
A set of useful data structures, including circular queue, binary tree/graph, linked list, and stack.
This is a set of (potentially) useful data structures, including:
And, each data structure has some pretty epic methods built in. For example, the graph has both a depth first and a breadth first search built right in! Take a look at it!
What's different about this package, eh? Just another bunch of random data structures.
…to which I say, not so fast! This package is designed with type safety in mind. It is 100% type hinted, to give you that extra peace of mind when writing great code.
Not only this, but there are of course tests built in! Run them easily with python3 -m doctest iron_datastructures/*.py
(add a -v
for extra verbosity!).
And there's more! This package has useful examples of what you can do with each data structure. Simply take a look at the source files - for example, circular_queue.py
:
Initialize a queue and add an acceptable number of items to it:
>>> myQueue = CircularQueue[str](6)
>>> myQueue.enQueue("Hello")
>>> myQueue.enQueue("there,")
>>> myQueue.enQueue("I")
>>> myQueue.enQueue("am")
>>> myQueue.enQueue("an")
>>> myQueue.enQueue("octopus.")
Check queue is full:
>>> myQueue.isFull()
True
Try to add too many items:
>>> myQueue.enQueue("overflow!")
Traceback (most recent call last):
...
Exception: Queue is full
This cool example, and many more like it, are bundled right up in the very same source files you'll be using in whatever fantabulous, exquisite creation you're working on.
Enjoy!
FAQs
A set of useful data structures, including circular queue, binary tree/graph, linked list, and stack.
We found that iron-datastructures demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.