Skip to main content

SharedCollections

SharedCollections contains, some commonly used data structure collections like queue and stack, which can be accessed by multiple access managers, individually. Currently it is alpha stage.

Version

The current version of this module is 0.0.2.

Check it by below command.

python3 -m sharedcollections.version

Dependencies

No such external dependencies, and currently it is supported in python 3.5+ only.

Installation

Using git

git clone https://github.com/antaripchatterjee/SharedCollections
cd SharedCollections
python3 setup.py install

Using pip

pip3 install SharedCollections

Uninstallation

pip3 uninstall SharedCollections

Usage

Example of using SharedQueue is given below as a reference.

from sharedcollections.queue import SharedQueue

if __name__ == "__main__":
    q = SharedQueue()
    # Constructor of SharedQueue can take two named aruguments
    # maxsize, default is None, decideds the maximum length of
    # items of the queue.
    # maxmgr. default is None, decideds the maximum count of the
    # managers of the queue.
    mgr1 = q.new_manager()
    q.put(1)
    mgr2 = q.new_manager()
    q.put(2)
    q.put(3)
    print('Length of mgr1', len(mgr1))
    print('Length of mgr2', len(mgr1))
    for i in mgr1:
        print(i, end=' ')
    print('\n------------------------')
    print(next(mgr2))
    print(mgr2.have_values())
    print(next(mgr2))

The above code will generate the below output.

Length of mgr1 3
Length of mgr2 2
1 2 3
------------------------
2
True
3

License

This library is licensed under MIT license.

Development

This is currently in Alpha stage, soon I will release a newer version with shared stack.

Metadata

Release files for SharedCollections 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SharedCollections 0.0.2
File Size Uploaded Provenance Actions
SharedCollections-0.0.2.tar.gz 5.1 kB Without provenance Details for SharedCollections-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SharedCollections 0.0.2
File Interpreter ABI Platform Actions
SharedCollections-0.0.2-py3-none-any.whl Python 3 none any Details for SharedCollections-0.0.2-py3-none-any.whl

Total release size: 10.6 kB

Release files / SharedCollections-0.0.2.tar.gz

Download URL SharedCollections-0.0.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
610315ba9a45940ea80454f7559907a0b61f83a159712c536fb5cf850bd773fe
BLAKE2b-256 checksum
How to use checksums
2f4b39b42bcedb415c35abe7b0571506304563b189491151ea81709732898205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.2

Release files / SharedCollections-0.0.2-py3-none-any.whl

Download URL SharedCollections-0.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94b8d90baad7776c0837471a8b7d7d69d891ed4b32868885f8ba13805c7c8eb9
BLAKE2b-256 checksum
How to use checksums
fd2959fa7e724157e59b9122c0da2761493eafcf2bba951faea606e29fc91831
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.2

Security for SharedCollections 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page