flowgo


Nameflowgo JSON
Version 1.1 PyPI version JSON
download
home_pagehttps://github.com/YesthisI/flow/
SummaryThis module for creating and working with individual threads in the local memory of each.
upload_time2024-08-27 14:02:28
maintainerNone
docs_urlNone
authorYesthisI
requires_pythonNone
licenseNone
keywords stack local threaded
VCS
bugtrack_url
requirements numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Introduction

`flowgo`  is a module for creating and working with individual threads in the local memory of each.
When threads are created, the system allocates an array of dtype values for thread local storage (TLS), which are initialized to NULL values. 
Before an index can be used, one of the threads must be assigned. Each thread stores its index data in an array of TLS slots. 
If the data associated with the index matches a value of type dtype , you can store the data directly in the TLS slot.

![alt text](https://github.com/YesthisI/flow/blob/main/images/Process.jpg)

# Installation
```
pip install flowgo
```
# Import
```python
from flowgo import new
```

#User Example
```python
>>>from flowgo import new
>>> d = new(float,10)
>>> d.index
[[0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0]]
>>>import random
>>>class neuron:
	def key(self):
		self.f = random.random()
		return self.f
>>> g = neuron()
>>> g
<__main__.neuron object at 0x000001E4183EE3D0>
>>>for y in range(0,10,1):
	d.index[y] = neuron()
	print(d.index[y])


<__main__.neuron object at 0x000001E4183C4D90>
<__main__.neuron object at 0x000001E4183C4DF0>
<__main__.neuron object at 0x000001E4183C4FA0>
<__main__.neuron object at 0x000001E4183C4D60>
<__main__.neuron object at 0x000001E4183C4E50>
<__main__.neuron object at 0x000001E4183C4F10>
<__main__.neuron object at 0x000001E4183C4FD0>
<__main__.neuron object at 0x000001E4183EE100>
<__main__.neuron object at 0x000001E4183EE160>
<__main__.neuron object at 0x000001E4183EE1C0>

>>> for y in range(0,10,1):
	d.index[y] = g.key()
	print(d.index[y])


0.44911829971109984
0.799771054321658
0.9866593046500528
0.5261054909048434
0.584669797754662
0.45202100815352386
0.9676910835103338
0.8198882778445146
0.7652557520179178
0.043740125797619434

>>> d.index
[0.44911829971109984, 0.799771054321658, 0.9866593046500528, 0.5261054909048434, 
0.584669797754662, 0.11103911368026942, 0.9732179960637262, 0.45910841138678904, 
0.4323464306091388, 0.017103767583308005]
>>> for y in range(3,10,1):
	d.index[y] = neuron().key()
	print(d.index[y])

0.736735454198254
0.5561266578913844
0.14408739831419615
0.6957408632107883
0.04113475552348311
0.1883360140198398
0.3012576585293536
>>> d.index.insert(5,neuron())
>>> d.index
[[0.0], [0.0], [0.0], 0.736735454198254, 0.5561266578913844, <__main__.neuron object at 0x000001E411A9E8E0>, 
0.14408739831419615, 0.6957408632107883, 0.04113475552348311, 0.1883360140198398, 0.3012576585293536]
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/YesthisI/flow/",
    "name": "flowgo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "stack, local, threaded",
    "author": "YesthisI",
    "author_email": "teiwaz-h@mail.ru",
    "download_url": "https://files.pythonhosted.org/packages/2f/e2/fd68d802feee695176b3f7b62f37e7c8da8f0b84c8675a2bb37ffb218a43/flowgo-1.1.tar.gz",
    "platform": null,
    "description": "# Introduction\r\n\r\n`flowgo`  is a module for creating and working with individual threads in the local memory of each.\r\nWhen threads are created, the system allocates an array of dtype values for thread local storage (TLS), which are initialized to NULL values. \r\nBefore an index can be used, one of the threads must be assigned. Each thread stores its index data in an array of TLS slots. \r\nIf the data associated with the index matches a value of type dtype , you can store the data directly in the TLS slot.\r\n\r\n![alt text](https://github.com/YesthisI/flow/blob/main/images/Process.jpg)\r\n\r\n# Installation\r\n```\r\npip install flowgo\r\n```\r\n# Import\r\n```python\r\nfrom flowgo import new\r\n```\r\n\r\n#User Example\r\n```python\r\n>>>from flowgo import new\r\n>>> d = new(float,10)\r\n>>> d.index\r\n[[0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0]]\r\n>>>import random\r\n>>>class neuron:\r\n\tdef key(self):\r\n\t\tself.f = random.random()\r\n\t\treturn self.f\r\n>>> g = neuron()\r\n>>> g\r\n<__main__.neuron object at 0x000001E4183EE3D0>\r\n>>>for y in range(0,10,1):\r\n\td.index[y] = neuron()\r\n\tprint(d.index[y])\r\n\r\n\r\n<__main__.neuron object at 0x000001E4183C4D90>\r\n<__main__.neuron object at 0x000001E4183C4DF0>\r\n<__main__.neuron object at 0x000001E4183C4FA0>\r\n<__main__.neuron object at 0x000001E4183C4D60>\r\n<__main__.neuron object at 0x000001E4183C4E50>\r\n<__main__.neuron object at 0x000001E4183C4F10>\r\n<__main__.neuron object at 0x000001E4183C4FD0>\r\n<__main__.neuron object at 0x000001E4183EE100>\r\n<__main__.neuron object at 0x000001E4183EE160>\r\n<__main__.neuron object at 0x000001E4183EE1C0>\r\n\r\n>>> for y in range(0,10,1):\r\n\td.index[y] = g.key()\r\n\tprint(d.index[y])\r\n\r\n\r\n0.44911829971109984\r\n0.799771054321658\r\n0.9866593046500528\r\n0.5261054909048434\r\n0.584669797754662\r\n0.45202100815352386\r\n0.9676910835103338\r\n0.8198882778445146\r\n0.7652557520179178\r\n0.043740125797619434\r\n\r\n>>> d.index\r\n[0.44911829971109984, 0.799771054321658, 0.9866593046500528, 0.5261054909048434, \r\n0.584669797754662, 0.11103911368026942, 0.9732179960637262, 0.45910841138678904, \r\n0.4323464306091388, 0.017103767583308005]\r\n>>> for y in range(3,10,1):\r\n\td.index[y] = neuron().key()\r\n\tprint(d.index[y])\r\n\r\n0.736735454198254\r\n0.5561266578913844\r\n0.14408739831419615\r\n0.6957408632107883\r\n0.04113475552348311\r\n0.1883360140198398\r\n0.3012576585293536\r\n>>> d.index.insert(5,neuron())\r\n>>> d.index\r\n[[0.0], [0.0], [0.0], 0.736735454198254, 0.5561266578913844, <__main__.neuron object at 0x000001E411A9E8E0>, \r\n0.14408739831419615, 0.6957408632107883, 0.04113475552348311, 0.1883360140198398, 0.3012576585293536]\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This module for creating and working with individual threads in the local memory of each.",
    "version": "1.1",
    "project_urls": {
        "Homepage": "https://github.com/YesthisI/flow/"
    },
    "split_keywords": [
        "stack",
        " local",
        " threaded"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e000ffd542c289f450fdbfd9fbf19d40970dbb6e1a4ec4f994f098ebbabe8cee",
                "md5": "825e6eafdd60bc641a7742f28d48d80d",
                "sha256": "2da799fb40143faf4245e4df68d4075f0bcecdcc14f29e1eab38da3a56126809"
            },
            "downloads": -1,
            "filename": "flowgo-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "825e6eafdd60bc641a7742f28d48d80d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3519,
            "upload_time": "2024-08-27T14:02:27",
            "upload_time_iso_8601": "2024-08-27T14:02:27.348120Z",
            "url": "https://files.pythonhosted.org/packages/e0/00/ffd542c289f450fdbfd9fbf19d40970dbb6e1a4ec4f994f098ebbabe8cee/flowgo-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2fe2fd68d802feee695176b3f7b62f37e7c8da8f0b84c8675a2bb37ffb218a43",
                "md5": "b3b460b03b23f795394235303744562f",
                "sha256": "8b14846fe4882b3f42d4980ed1109e9a9902e2b92cdd332936216053236a978b"
            },
            "downloads": -1,
            "filename": "flowgo-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b3b460b03b23f795394235303744562f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3369,
            "upload_time": "2024-08-27T14:02:28",
            "upload_time_iso_8601": "2024-08-27T14:02:28.573821Z",
            "url": "https://files.pythonhosted.org/packages/2f/e2/fd68d802feee695176b3f7b62f37e7c8da8f0b84c8675a2bb37ffb218a43/flowgo-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-27 14:02:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "YesthisI",
    "github_project": "flow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.24.2"
                ]
            ]
        }
    ],
    "lcname": "flowgo"
}
        
Elapsed time: 0.28739s