Skip to main content

Build Status Coverage Status

graphene-pandas(under developing)

Installation

For instaling graphene-pandas, just run this command in your shell

pip3 install graphene-pandas(not implemented)

Examples

To create a GraphQL schema for it, you simply have to write the following:

import pandas as pd

import graphene
from graphene_pandas import DataFrameObjectType

data = {"Brand": ["Honda Civic", "Toyota Corolla", "Ford Focus", "Audi A4"],
        "Price": [22000, 25000, 27000, 35000]}
df = pd.DataFrame(data)


class Records(DataFrameObjectType):
    class Meta:
        model = df
        exclude_fields = ()


class Query(graphene.ObjectType):
    record = graphene.Field(Records, index=graphene.Int())
    records = graphene.List(Records)

    def resolve_record(self, info, index):
        query = Records.get_row_int_index(info, index)
        return query

    def resolve_records(self, info):
        query = Records.get_all_rows(info)
        return query

schema = graphene.Schema(query=Query)

query = """
            query Test {
              record(index: 1) {
                Brand
                Price
              }
              records {
                Brand
                Price
              }
            }
        """

result = graphene.schema.execute(query)


Metadata

Release files for graphene-pandas 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphene-pandas 0.1.1
File Size Uploaded Provenance Actions
graphene-pandas-0.1.1.tar.gz 4.6 kB Without provenance Details for graphene-pandas-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graphene-pandas 0.1.1
File Interpreter ABI Platform Actions
graphene_pandas-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for graphene_pandas-0.1.1-py2.py3-none-any.whl

Total release size: 10.5 kB

Release files / graphene-pandas-0.1.1.tar.gz

Download URL graphene-pandas-0.1.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9cba44fc85a729827ebecd4d53a0893fe5949b3c9deaa9c6bc2d98b1b88f1b9c
BLAKE2b-256 checksum
How to use checksums
5b070c849b311eaecb883892b6e1c83ee04ea7f06c61bbace9d69c0d14886ff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Release files / graphene_pandas-0.1.1-py2.py3-none-any.whl

Download URL graphene_pandas-0.1.1-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8ae042abb970bd314a76b9739b69895c1362a737c13e78655a52fd3afef65c41
BLAKE2b-256 checksum
How to use checksums
8536b781df71c62f88220cd15c87c8e14fc70fc59d9201f38f973d6c27e8ca71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Security for graphene-pandas 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page