Code Monkey home page Code Monkey logo

sejmnet's Introduction

Sejm logo

SejmNet

SejmNet is a C# production-ready client library for the official API of the Parliament of the Republic of Poland (Sejm) available at https://api.sejm.gov.pl.

Supported platforms

Currently, the package supports .NET 8 or later.

Usage

To get access to the API, simply create a new instance of SejmNet.SejmClient and call an appropriate method.

using SejmNet;
using SejmNet.Models;

SejmClient client = new();

// Returns information about all clubs in the 10th term of the parliament.
Club[] clubs = client.GetClubs(10);

// Returns information about a parliament member with ID 148 in the 10th term of the parliament.
ParliamentMember? member = client.GetMember(10, 148);

Known issues

  • ISejmClient.GetPrints() - /sejm/term{term}/prints - tends to have EXTREMALY low performance (like, requests can last for literal minutes), using this method should be avoided if possible.

  • ISejmClient.GetPrints() - /sejm/term{term}/prints - the 'sort_by' parameter is not supported by the library, as it does not seem to work.

  • IEliSejmClient - /eli/changes/acts - this action is not implemented, it seems like it doesn't work properly.

Contributing

Contributions are more than welcome, feel free to open a new issue or create a pull request.

sejmnet's People

Contributors

piotrstenke avatar

Stargazers

Michał Obrembski avatar  avatar Jakub Sokołowski avatar

Watchers

Michał Obrembski avatar  avatar

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.