-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
GraphQL support / accessor plugin system #29076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@datapythonista would this fit into the plugin idea you mentioned elsewhere? |
That looks interesting. I don't know much about graphql, and the plugin system I proposed so far is for IO, but I think would be good to have this in pandas. But the way it's implemented it should be as easy as decorating that function or class to make it a DataFrame accessor I think. That would solve the immediate problem. And using entry points to extend pandas is surely something we can consider. I'm in my phone, and travelling, so won't be able to have a look in the next few days probably, but if you want to create an issue for that with more details on what you implemented that would be great. And if you have ideas on how to make extensions compatible both with pandas and vaex, even better. |
take |
take |
…oints (pandas-dev#29076) Allows external libraries to register DataFrame accessors using the 'pandas_dataframe_accessor' entry point group. This enables plugins to be automatically used without explicit import. Co-authored-by: Afonso Antunes <[email protected]>
…oints (pandas-dev#29076) Allows external libraries to register DataFrame accessors using the 'pandas_dataframe_accessor' entry point group. This enables plugins to be automatically used without explicit import. Co-authored-by: Afonso Antunes <[email protected]>
…9076) Allows external libraries to register DataFrame accessors using the 'pandas_dataframe_accessor' entry point group. This enables plugins to be automatically used without explicit import. Co-authored-by: Afonso Antunes <[email protected]>
I recently added graphql support in vaex (another dataframe library), and just added support for pandas as well: vaexio/vaex#446
However, this is only available after importing vaex.graphql, e.g.:

In vaex, I use a plugin system using the entry point system, e.g:
Is this maybe something pandas can do as well? That would mean that simply installing vaex.graphql would enable this.
Note: in vaex I lazily import the modules, so if
df.graphql
never gets accessed, vaex.graphql will never be imported.The text was updated successfully, but these errors were encountered: