Skip to content

GraphQL support / accessor plugin system #29076

Open
@maartenbreddels

Description

@maartenbreddels

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.:
image

In vaex, I use a plugin system using the entry point system, e.g:

entry_points={
        'vaex.dataframe.accessor': ['graphql = vaex.graphql:DataFrameAccessorGraphQL'],
    },

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.

Activity

changed the title [-]GraphQL support / accessor plugin system for [/-] [+]GraphQL support / accessor plugin system[/+] on Oct 18, 2019
jbrockmendel

jbrockmendel commented on Oct 28, 2019

@jbrockmendel
Member

@datapythonista would this fit into the plugin idea you mentioned elsewhere?

datapythonista

datapythonista commented on Oct 28, 2019

@datapythonista
Member

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.

afonso-antunes

afonso-antunes commented on May 2, 2025

@afonso-antunes

take

PedroM4rques

PedroM4rques commented on May 7, 2025

@PedroM4rques
Contributor

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EnhancementIO DataIO issues that don't fit into a more specific label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @maartenbreddels@jbrockmendel@datapythonista@afonso-antunes@PedroM4rques

    Issue actions

      GraphQL support / accessor plugin system · Issue #29076 · pandas-dev/pandas