GithubHelp home page GithubHelp logo

cookiecutter-polars-plugins's Introduction

Hello everybody,

I work at Quansight Labs and spend time on:

  • Polars
  • pandas
  • assorted consulting / training

I've also written some assorted little tools:

  • cython-lint (the world's first Cython linter?)
  • absolufy-imports (superseded by ruff)
  • nbQA (mostly superseded by ruff, but still gets ~100k downloads/month for some reason)
  • auto-walrus (hopefully won't be implemented in ruff)
  • polars-upgrade (the only way is up)
  • polars-xdt (eXtra stuff for Dates 'n' Times)
  • narwhals (🎵singing in the ocean, causing a commotion🎶)

and a tutorial on how to write Polars Plugins: https://marcogorelli.github.io/polars-plugins-tutorial/. Don't be scared

Socials:

cookiecutter-polars-plugins's People

Contributors

apcamargo avatar baggiponte avatar condekind avatar jr200 avatar marcogorelli avatar thomasjpfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cookiecutter-polars-plugins's Issues

Issue with `returns_scalar` for `register_plugin`

Hello!

I tried following the instructions but I get the following error (I think I have setup the environment correctly):

(.venv) josie@...:~/code/cookiecutter-polars-plugins/minimal_plugin$ python run.py 
Traceback (most recent call last):
  File "/home/josie/code/cookiecutter-polars-plugins/minimal_plugin/run.py", line 7, in <module>
    result = df.with_columns(pig_latin = pig_latinnify('english'))
                                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/josie/code/cookiecutter-polars-plugins/minimal_plugin/minimal_plugin/__init__.py", line 22, in pig_latinnify
    return register_plugin(
           ^^^^^^^^^^^^^^^^
TypeError: register_plugin() missing 1 required keyword-only argument: 'returns_scalar'

Adding returns_scalar=False in https://github.com/MarcoGorelli/cookiecutter-polars-plugins/blob/main/%7B%7B%20cookiecutter.project_slug%20%7D%7D/%7B%7B%20cookiecutter.project_slug%20%7D%7D/__init__.py#L22-L27 seems to fix the issue

cookiecutter error

Hi Marco,
I'm hitting an error after running cookiecutter. Can you have a look? Thanks!

Unable to create file '.github/workflows/publish_to_pypi.yml'
Error message: 'github' is undefined
Context: {
    "_cookiecutter": {
        "author": "",
        "plugin_name": "Polars Cookiecutter",
        "project_slug": "{{ cookiecutter.plugin_name.lower().replace(' ', '_').replace('-', '_') }}"
    },
    "cookiecutter": {
        "_checkout": null,
        "_output_dir": "/Users/xxx/Desktop/project/rust/plugin",
        "_repo_dir": "cookiecutter-polars-plugins",
        "_template": "cookiecutter-polars-plugins",
        "author": "",
        "plugin_name": "test",
        "project_slug": "test"
    }
}

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.