Giter VIP home page Giter VIP logo

Comments (6)

muddi900 avatar muddi900 commented on June 10, 2024 1

I have contributed before, but those were minor. So thank you for the offer. I will sure to ask for it.

from gspread.

alifeee avatar alifeee commented on June 10, 2024

Hi. This is a nice idea.

I think it is quite large in scope. I do not have time to implement such a large feature. If you wanted to, I could help you think about it.

For now, I suggest using Spreadsheet.batch_update, and building the request yourself with help from Google's docs. For example, using the example from that page, this works for me:

import gspread

gc = gspread.service_account(filename="google_credentials.json")
sh = gc.open("gspread test spreadsheet")

sh.batch_update(
    {
        "requests": [
            {
                "setDataValidation": {
                    "range": {
                        "sheetId": sh.sheet1.id,
                        "startRowIndex": 0,
                        "endRowIndex": 10,
                        "startColumnIndex": 0,
                        "endColumnIndex": 4,
                    },
                    "rule": {
                        "condition": {
                            "type": "NUMBER_GREATER",
                            "values": [{"userEnteredValue": "5"}],
                        },
                        "inputMessage": "Value must be > 5",
                        "strict": True,
                    },
                }
            }
        ]
    }
)

from gspread.

muddi900 avatar muddi900 commented on June 10, 2024

from gspread.

alifeee avatar alifeee commented on June 10, 2024

I can implement it myself.

Radical, do let me know if you need any help. See the contributing guide if you are interested. :)

from gspread.

muddi900 avatar muddi900 commented on June 10, 2024

So i have started work on this. What are specs for the docstrings?

from gspread.

alifeee avatar alifeee commented on June 10, 2024

docstrings use Sphinx. See a guide here

https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html

from gspread.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.