Skip to main content

SharedCollections contains some commonly used data structured collections, which can be accessed among some multiple access manager.

Project description

SharedCollections

SharedCollections contains, some commonly used data structure collections like queue and stack, which can be accessed by multiple access managers, individually. This version(0.0.1) is the Alpha release of the module which let us create a shared queue only.

Version

The current version of this module is 0.0.1.

Dependencies

No such external dependencies, and currently it is supported in python 3 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()
    mgr1 = q.new_manager()
    q.put(1)
    mgr2 = q.new_manager()
    q.put(2)
    q.put(3)
    print('Length of mgr1', len(mg1))
    print('Length of mgr2', len(mg1))
    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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SharedCollections-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

SharedCollections-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file SharedCollections-0.0.1.tar.gz.

File metadata

  • Download URL: SharedCollections-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for SharedCollections-0.0.1.tar.gz
Algorithm Hash digest
SHA256 944d74d211b461c2ec4ada55eab3d4a814d636f67a3bfd2af93e44e4ea24734e
MD5 a1e7a8957058e25a9ed466c6da25ec3d
BLAKE2b-256 f42685cdd66b148071e4db2bf268712bb1f9bec7a3aaac608e74ef53e5915151

See more details on using hashes here.

File details

Details for the file SharedCollections-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: SharedCollections-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for SharedCollections-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21a7f6011aca00231aba9c1cc2edb011633570c8cabd68e850a07aa3b9f049bf
MD5 d02f6825592a0196ba725bd618f4afbf
BLAKE2b-256 93f0269792f22d1ebec9c633f81675e62a8d3b7fcadc1356bfbf9997b0414259

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page