# ntt-signal
Signal library by threezinedine
## Example
```python
def Callback() -> None:
print("Signal is emitted")
signal = Signal()
signal.Connect(Callback)
signal.Emit()
```
## Example with type
```python
def Callback(nValue: int) -> None:
print(f"Signal is emitted with value {nValue}")
signal = Signal(int)
signal.Connect(Callback)
signal.Emit(3)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/threezinedine/ntt-signal",
"name": "ntt-signal",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "dependency injector",
"author": "threezinedine",
"author_email": "threezinedine@email.com",
"download_url": "https://files.pythonhosted.org/packages/d8/97/5252802fc5e2e49f20173e673bb14287013735b4b50a3816614ec47b3924/ntt-signal-1.0.3.tar.gz",
"platform": null,
"description": "# ntt-signal\r\nSignal library by threezinedine\r\n\r\n## Example\r\n```python\r\ndef Callback() -> None:\r\n print(\"Signal is emitted\")\r\n\r\nsignal = Signal()\r\nsignal.Connect(Callback)\r\n\r\nsignal.Emit()\r\n```\r\n\r\n## Example with type\r\n```python\r\ndef Callback(nValue: int) -> None:\r\n print(f\"Signal is emitted with value {nValue}\")\r\n\r\nsignal = Signal(int)\r\nsignal.Connect(Callback)\r\n\r\nsignal.Emit(3)\r\n```\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "Small library for observation mechanism",
"version": "1.0.3",
"project_urls": {
"Homepage": "https://github.com/threezinedine/ntt-signal",
"Source": "https://github.com/threezinedine/ntt-signal",
"Tracker": "https://github.com/threezinedine/ntt-signal/issues"
},
"split_keywords": [
"dependency",
"injector"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "115b07dd2134278366a1c66fe37581a91629c500e6027cfa9be833fb4c968e1d",
"md5": "52aa6ebe29ff67cca451212e21ec12c1",
"sha256": "8242d48dc8ce46414b1c3c6a727b7ae5601dd437f049fb1f663c7d9d014dc6cb"
},
"downloads": -1,
"filename": "ntt_signal-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "52aa6ebe29ff67cca451212e21ec12c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4641,
"upload_time": "2023-11-27T10:23:19",
"upload_time_iso_8601": "2023-11-27T10:23:19.416582Z",
"url": "https://files.pythonhosted.org/packages/11/5b/07dd2134278366a1c66fe37581a91629c500e6027cfa9be833fb4c968e1d/ntt_signal-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d8975252802fc5e2e49f20173e673bb14287013735b4b50a3816614ec47b3924",
"md5": "94f564b0225c0a0971002389f8a30ae0",
"sha256": "2133eebb7e5a6ef61a9186f54c9110a9d6354edc981f08723a516a37f8884e66"
},
"downloads": -1,
"filename": "ntt-signal-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "94f564b0225c0a0971002389f8a30ae0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3756,
"upload_time": "2023-11-27T10:23:22",
"upload_time_iso_8601": "2023-11-27T10:23:22.481494Z",
"url": "https://files.pythonhosted.org/packages/d8/97/5252802fc5e2e49f20173e673bb14287013735b4b50a3816614ec47b3924/ntt-signal-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-27 10:23:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "threezinedine",
"github_project": "ntt-signal",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ntt-signal"
}