# influx-line
Lightweight [influxdb line protocol](https://docs.influxdata.com/influxdb/v2.3/write_protocols/line_protocol_tutorial) builder
## Installation
```bash
pip install influx-line
```
## Usage
```python
from influx_line import InfluxLine
line = InfluxLine("weather")
line.add_tag("location", "CA")
line.add_tag("season", "summer")
line.add_field("temperature", 82, is_integer=True)
line.add_field("error", 0.1)
line.add_field("time_zone", "PDT")
line.set_timestamp(1556813561098000000)
str(line)
"""
weather,location=CA,season=summer temperature=82i,error=0.1,time_zone="PDT" 1556813561098000000
"""
```
## Contributing
The default repository is on [gitlab](https://gitlab.com/functionoffunction/influx-line) but mirrored on [github](https://github.com/functionoffunction/influx-line)
[Google style guidelines](https://google.github.io/styleguide/) has been chosen as the style and contribution guidelines for submitting additions. In general, we follow the "fork-and-pull" Git workflow.
1. **Fork** the repo on GitLab
2. **Clone** the project to your own machine
3. **Commit** changes to your own branch
4. **Push** your work back up to your fork
5. Submit a **Merge request** so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
## License
See [LICENSE](https://github.com/functionoffunction/influx-line/blob/main/LICENSE) file.
Raw data
{
"_id": null,
"home_page": null,
"name": "influx-line",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, influx, influxdb, line protocol, flux, influx line protocol",
"author": "Oluwatimilehin Akogun",
"author_email": "hello@timiakogun.com",
"download_url": "https://files.pythonhosted.org/packages/46/00/cf254a72285012cfa5a7335b03e4f849c90dff14cb9b18227a9a57c0cdbc/influx-line-1.0.0.tar.gz",
"platform": null,
"description": "\n# influx-line\n\nLightweight [influxdb line protocol](https://docs.influxdata.com/influxdb/v2.3/write_protocols/line_protocol_tutorial) builder\n\n## Installation\n\n```bash\npip install influx-line\n```\n\n## Usage\n\n```python\nfrom influx_line import InfluxLine \n\nline = InfluxLine(\"weather\")\n\nline.add_tag(\"location\", \"CA\")\nline.add_tag(\"season\", \"summer\")\nline.add_field(\"temperature\", 82, is_integer=True)\nline.add_field(\"error\", 0.1)\nline.add_field(\"time_zone\", \"PDT\")\n\nline.set_timestamp(1556813561098000000)\n\nstr(line)\n\"\"\"\nweather,location=CA,season=summer temperature=82i,error=0.1,time_zone=\"PDT\" 1556813561098000000\n\"\"\"\n\n```\n\n## Contributing\n\nThe default repository is on [gitlab](https://gitlab.com/functionoffunction/influx-line) but mirrored on [github](https://github.com/functionoffunction/influx-line)\n\n[Google style guidelines](https://google.github.io/styleguide/) has been chosen as the style and contribution guidelines for submitting additions. In general, we follow the \"fork-and-pull\" Git workflow.\n\n 1. **Fork** the repo on GitLab\n 2. **Clone** the project to your own machine\n 3. **Commit** changes to your own branch\n 4. **Push** your work back up to your fork\n 5. Submit a **Merge request** so that we can review your changes\n\nNOTE: Be sure to merge the latest from \"upstream\" before making a pull request!\n\n## License\n\nSee [LICENSE](https://github.com/functionoffunction/influx-line/blob/main/LICENSE) file.\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Influx line protocol builder",
"version": "1.0.0",
"project_urls": null,
"split_keywords": [
"python",
" influx",
" influxdb",
" line protocol",
" flux",
" influx line protocol"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "160c149ede5210c79609ce4bf9e1b134c03078513c12ff78836cb9635f26343d",
"md5": "777fb4e40d2370eee65c95e23993ee8b",
"sha256": "3d8f3c7abedbe0f01da0f879edc79077f2a4c3d70b39caa55763fe777b1c7544"
},
"downloads": -1,
"filename": "influx_line-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "777fb4e40d2370eee65c95e23993ee8b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3742,
"upload_time": "2024-03-30T02:03:15",
"upload_time_iso_8601": "2024-03-30T02:03:15.452989Z",
"url": "https://files.pythonhosted.org/packages/16/0c/149ede5210c79609ce4bf9e1b134c03078513c12ff78836cb9635f26343d/influx_line-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4600cf254a72285012cfa5a7335b03e4f849c90dff14cb9b18227a9a57c0cdbc",
"md5": "8be543815bb5e9fb6f42dc42724d375e",
"sha256": "799b0769c53a8c80cc537e0efc48d391bbec3e71f266b175aaf7f0ce90468472"
},
"downloads": -1,
"filename": "influx-line-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "8be543815bb5e9fb6f42dc42724d375e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4259,
"upload_time": "2024-03-30T02:03:17",
"upload_time_iso_8601": "2024-03-30T02:03:17.379698Z",
"url": "https://files.pythonhosted.org/packages/46/00/cf254a72285012cfa5a7335b03e4f849c90dff14cb9b18227a9a57c0cdbc/influx-line-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-30 02:03:17",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "influx-line"
}