micropython-googlesheet


Namemicropython-googlesheet JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/PerfecXX/MicroPython-GoogleSheet
SummaryUpdate or append the data to Google Sheet, or get the data on Google Sheet. by using HTTP to execute the Google Apps Script API compatible with ESP32 and ESP8266.
upload_time2023-12-13 04:09:18
maintainerTeeraphat Kullanankanjana
docs_urlNone
authorTeeraphat Kullanankanjana
requires_python
licenseMIT
keywords googlesheet esp32 esp8266 micropython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            MicroPython-GoogleSheet
=======================

Update or append the data to Google Sheet, or get the data on Google
Sheet. by using HTTP to execute the Google Apps Script API. Compatible
with ESP32 and ESP8266.

Full Documentation
==================

Github: https://github.com/PerfecXX/MicroPython-GoogleSheet

Quick Example
=============

.. code:: python

   # Import Library 
   from ggsheet import MicroGoogleSheet
   from network import WLAN,STA_IF

   # Network Creadential 
   ssid = "Change_SSID"    
   password = "Change_Password"

   # Connect to Network
   sta_if = WLAN(STA_IF)
   sta_if.active(True)
   if not sta_if.isconnected():
       print("Connecting to wifi: ", ssid)
       sta_if.connect(ssid, password)
       while not sta_if.isconnected():
           pass
   print("Connection successful")

   # Google Sheet Credential 
   google_sheet_url = "https://docs.google.com/spreadsheets/d/xxxxxxxxx/edit#gid=0"
   google_sheet_name = "Sheet1"
   google_app_deployment_id = "xxxxxxxx"

   # Create Instance 
   ggsheet = MicroGoogleSheet(google_sheet_url,google_sheet_name)
   ggsheet.set_DeploymentID(google_app_deployment_id)

   # create the Google App Script file (not necessary if it already exists).
   ggsheet.gen_scriptFile()

   # Update the data to a specific cell (Row,Column,Data)
   ggsheet.updateCell(1,1,"Hello this is my first data")

   # Get the data from a specific cell (Row,Column)
   print(ggsheet.getCell(1,1))

   # Delete the data from a specific cell (Row,Column)
   ggsheet.deleteCell(1,1)

   # Append the data to a specific row (Row, Data List)
   ggsheet.appendRow(1,[1,2,3,"Row 1 Appended!"])

   # Update the data in a specific row (Row, Data List) 
   ggsheet.updateRow(1,[3,2,1,"Row 1 Updated!"])

   # Get all of the data from a specific row (Row)
   ggsheet.getRow(1)

   # Delete the data in a specific row (Row)
   ggsheet.deleteRow(1)

   # Append the data to a specific column (Column, Data List)
   ggsheet.appendColumn(1,[1,2,3,"Column 1 Appended!"])

   # Update the data to a specific column (Column, Data List)
   ggsheet.updateColumn(1,[3,2,1,"Column 1 Updated!"])

   # Get all of the data from a specific column (Column)
   ggsheet.getColumn(1)

   # Delete the data in a specific column (Column)
   ggsheet.deleteColumn(1) 








            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PerfecXX/MicroPython-GoogleSheet",
    "name": "micropython-googlesheet",
    "maintainer": "Teeraphat Kullanankanjana",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "ku.teeraphat@hotmail.com",
    "keywords": "googlesheet,esp32,esp8266,micropython",
    "author": "Teeraphat Kullanankanjana",
    "author_email": "ku.teeraphat@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d4/0f/f65c79ce0684100773be42b4f972095c01a27431105ffe83375a238442db/micropython-googlesheet-0.0.3.tar.gz",
    "platform": null,
    "description": "MicroPython-GoogleSheet\r\n=======================\r\n\r\nUpdate or append the data to Google Sheet, or get the data on Google\r\nSheet. by using HTTP to execute the Google Apps Script API. Compatible\r\nwith ESP32 and ESP8266.\r\n\r\nFull Documentation\r\n==================\r\n\r\nGithub: https://github.com/PerfecXX/MicroPython-GoogleSheet\r\n\r\nQuick Example\r\n=============\r\n\r\n.. code:: python\r\n\r\n   # Import Library \r\n   from ggsheet import MicroGoogleSheet\r\n   from network import WLAN,STA_IF\r\n\r\n   # Network Creadential \r\n   ssid = \"Change_SSID\"    \r\n   password = \"Change_Password\"\r\n\r\n   # Connect to Network\r\n   sta_if = WLAN(STA_IF)\r\n   sta_if.active(True)\r\n   if not sta_if.isconnected():\r\n       print(\"Connecting to wifi: \", ssid)\r\n       sta_if.connect(ssid, password)\r\n       while not sta_if.isconnected():\r\n           pass\r\n   print(\"Connection successful\")\r\n\r\n   # Google Sheet Credential \r\n   google_sheet_url = \"https://docs.google.com/spreadsheets/d/xxxxxxxxx/edit#gid=0\"\r\n   google_sheet_name = \"Sheet1\"\r\n   google_app_deployment_id = \"xxxxxxxx\"\r\n\r\n   # Create Instance \r\n   ggsheet = MicroGoogleSheet(google_sheet_url,google_sheet_name)\r\n   ggsheet.set_DeploymentID(google_app_deployment_id)\r\n\r\n   # create the Google App Script file (not necessary if it already exists).\r\n   ggsheet.gen_scriptFile()\r\n\r\n   # Update the data to a specific cell (Row,Column,Data)\r\n   ggsheet.updateCell(1,1,\"Hello this is my first data\")\r\n\r\n   # Get the data from a specific cell (Row,Column)\r\n   print(ggsheet.getCell(1,1))\r\n\r\n   # Delete the data from a specific cell (Row,Column)\r\n   ggsheet.deleteCell(1,1)\r\n\r\n   # Append the data to a specific row (Row, Data List)\r\n   ggsheet.appendRow(1,[1,2,3,\"Row 1 Appended!\"])\r\n\r\n   # Update the data in a specific row (Row, Data List) \r\n   ggsheet.updateRow(1,[3,2,1,\"Row 1 Updated!\"])\r\n\r\n   # Get all of the data from a specific row (Row)\r\n   ggsheet.getRow(1)\r\n\r\n   # Delete the data in a specific row (Row)\r\n   ggsheet.deleteRow(1)\r\n\r\n   # Append the data to a specific column (Column, Data List)\r\n   ggsheet.appendColumn(1,[1,2,3,\"Column 1 Appended!\"])\r\n\r\n   # Update the data to a specific column (Column, Data List)\r\n   ggsheet.updateColumn(1,[3,2,1,\"Column 1 Updated!\"])\r\n\r\n   # Get all of the data from a specific column (Column)\r\n   ggsheet.getColumn(1)\r\n\r\n   # Delete the data in a specific column (Column)\r\n   ggsheet.deleteColumn(1) \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Update or append the data to Google Sheet, or get the data on Google Sheet. by using HTTP to execute the Google Apps Script API compatible with ESP32 and ESP8266.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/PerfecXX/MicroPython-GoogleSheet"
    },
    "split_keywords": [
        "googlesheet",
        "esp32",
        "esp8266",
        "micropython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d40ff65c79ce0684100773be42b4f972095c01a27431105ffe83375a238442db",
                "md5": "db47173317d5df87a6b87d4ec4fc1856",
                "sha256": "e4f001da13e1c0c90b7445aca55432c195c518cd690aac02d2beafc25e72770e"
            },
            "downloads": -1,
            "filename": "micropython-googlesheet-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "db47173317d5df87a6b87d4ec4fc1856",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4886,
            "upload_time": "2023-12-13T04:09:18",
            "upload_time_iso_8601": "2023-12-13T04:09:18.416732Z",
            "url": "https://files.pythonhosted.org/packages/d4/0f/f65c79ce0684100773be42b4f972095c01a27431105ffe83375a238442db/micropython-googlesheet-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-13 04:09:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PerfecXX",
    "github_project": "MicroPython-GoogleSheet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "micropython-googlesheet"
}
        
Elapsed time: 0.22340s