# Template Project to create working pip package
This package contains an check_connection function where you can enter your server adress and the number of tries, so that it connects to the server as many times as given and calculates the artihmetic mean on how long it takes to do so.\
Additionally a list_mean function is implemented, where you can calculate the arithmetic mean of a list.
Also, this project is an example package to show how to create an own pip package.
In the following the steps to do so are explained
## 1. Sourcetree
The structure of the project has to contain the following files and folders:
- LICENSE.txt
- README.txt
- CHANGELOG.txt
- pyproject.toml
- requirements.txt
- src/{name_of_your_package}
Files such as .flake or Jenkinsfile are optional and can be used to check your code autmatically when updated on git.
## 2. Building
After setting up your sourcetree and implementing the code in `__init__.py` the build can be started by `py -m build`.\
This will created all needed files and structures. Afterwards this can be published to PyPi by `twine upload dist/*`.\
Consider that you have to have an existing PyPi Account and that your package name is not already used.
Now your package is finished and can be implement by other users by using `pip install {your_package_name}`
For further information see:\
https://confluencewikiprod.intra.infineon.com/display/SCCVMP/Basic+structure+of+a+python+Project \
https://packaging.python.org/en/latest/tutorials/packaging-projects/
Raw data
{
"_id": null,
"home_page": "",
"name": "check-connection",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Raphael Trinkler <raphael.trinkler@infineon.com>",
"keywords": "connection,check,template",
"author": "Raphael Trinkler",
"author_email": "raphael.trinkler@infineon.com",
"download_url": "https://files.pythonhosted.org/packages/fa/98/9fdfce8c1aef73c86d9a95a8bad3dd0a308ee7e5c31eb209f55bbba8087e/check_connection-0.0.2.tar.gz",
"platform": null,
"description": "# Template Project to create working pip package\r\n\r\nThis package contains an check_connection function where you can enter your server adress and the number of tries, so that it connects to the server as many times as given and calculates the artihmetic mean on how long it takes to do so.\\\r\nAdditionally a list_mean function is implemented, where you can calculate the arithmetic mean of a list.\r\n\r\n\r\nAlso, this project is an example package to show how to create an own pip package.\r\nIn the following the steps to do so are explained\r\n\r\n\r\n\r\n## 1. Sourcetree\r\nThe structure of the project has to contain the following files and folders:\r\n - LICENSE.txt\r\n - README.txt\r\n - CHANGELOG.txt\r\n - pyproject.toml\r\n - requirements.txt\r\n - src/{name_of_your_package}\r\n\r\nFiles such as .flake or Jenkinsfile are optional and can be used to check your code autmatically when updated on git.\r\n\r\n## 2. Building\r\n\r\nAfter setting up your sourcetree and implementing the code in `__init__.py` the build can be started by `py -m build`.\\\r\nThis will created all needed files and structures. Afterwards this can be published to PyPi by `twine upload dist/*`.\\\r\nConsider that you have to have an existing PyPi Account and that your package name is not already used.\r\n\r\nNow your package is finished and can be implement by other users by using `pip install {your_package_name}`\r\n\r\nFor further information see:\\\r\nhttps://confluencewikiprod.intra.infineon.com/display/SCCVMP/Basic+structure+of+a+python+Project \\\r\nhttps://packaging.python.org/en/latest/tutorials/packaging-projects/\r\n",
"bugtrack_url": null,
"license": "Proprietary. Do not distribute outside of Infineon Technologies AG.",
"summary": "Function to check connection to certain server",
"version": "0.0.2",
"split_keywords": [
"connection",
"check",
"template"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d3e41d109f1fd85452018355eadb28c16dcf5e8925a41b627b7c2e5b5b8a4ab",
"md5": "344ed1469db1f76796db6daa3dd2ee97",
"sha256": "185d8b384b0e76381747e5a4d70f2d68a34a0a8ad07213b8a2b810a840ef627e"
},
"downloads": -1,
"filename": "check_connection-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "344ed1469db1f76796db6daa3dd2ee97",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4173,
"upload_time": "2023-02-08T12:12:02",
"upload_time_iso_8601": "2023-02-08T12:12:02.668840Z",
"url": "https://files.pythonhosted.org/packages/6d/3e/41d109f1fd85452018355eadb28c16dcf5e8925a41b627b7c2e5b5b8a4ab/check_connection-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fa989fdfce8c1aef73c86d9a95a8bad3dd0a308ee7e5c31eb209f55bbba8087e",
"md5": "6850e08d3c6fed365b445c5bef82ca2d",
"sha256": "67d5d6b2e7b3be36ae9bb5715e20e6a0550c7313c31c8f8ec715a744f817aee8"
},
"downloads": -1,
"filename": "check_connection-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "6850e08d3c6fed365b445c5bef82ca2d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3522,
"upload_time": "2023-02-08T12:12:05",
"upload_time_iso_8601": "2023-02-08T12:12:05.942440Z",
"url": "https://files.pythonhosted.org/packages/fa/98/9fdfce8c1aef73c86d9a95a8bad3dd0a308ee7e5c31eb209f55bbba8087e/check_connection-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-08 12:12:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "check-connection"
}