Skip to main content

GraphCall

License

This project is licensed under the GNU GPLv3 License

Introduction

Back when I first discovered GraphQL, I started using it for y data driven projects.

But I was in shock when I saw that no good java framework was able to make a decent request.

I decided to make one then...

Use case

import com.nwmqpa.graphcall.requests.Query;

public class Main {
    
    public int main(String argv[]) {
        Query query = new Query();
        query.addNode("hero")
                .addNode("friends")
                .addEdge("friendsName")
                .buildNode()
                .addEdge("name");
        System.out.println(query.compile);
        
        Request request = new Request(query.compile());
        Result result = request.send(new URL("http://api.example.com/graphql/"));
        System.out.println(result.data);
        return (0);
    }
}

Resolves to ...

query {
  hero {
    friends {
      friendsName
    }
    name
  }
}

{"data": {
    "hero": [
        {
            "friends": [
                {
                    "friendsName": "Leia"
                },
                {
                    "firendsName": "Han"
                }
            ],
            "name": "Luke"
        }
     ]
    }
}

TODO

  • Make mutation resolves correcty

  • Implement queries arguments.

  • Implements fragments and name queries.

Credits

Thomas Nicollet (@nwmqpa)

Metadata

Release files for graphcall 0.0.15

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

Source distribution (sdist)

Source distribution for graphcall 0.0.15
File Size Uploaded Provenance Actions
graphcall-0.0.15.tar.gz 3.2 kB Without provenance Details for graphcall-0.0.15.tar.gz

Release files / graphcall-0.0.15.tar.gz

Download URL graphcall-0.0.15.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f3d9a12ae4a9124345cfd96f1b56200c92183a541ae9d472e83edd4936a5721f
BLAKE2b-256 checksum
How to use checksums
77085daff82dc009d0912914753d190bb66c0f167f5c8ce1c216756e5c8966eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Security for graphcall 0.0.15

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.

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