Skip to main content

Library for extracting rechtspraak citations for provided ECLIs

Project description

Rechtspraak citations

This library contains a function that aqcuires citation data for Rechtspraak cases using the LIDO.

Version

Python 3.9

Contributors

Cloud956
Piotr Lewandowski
shashankmc
shashankmc
gijsvd
gijsvd

How to install?

pip install rechtspraak_citations_extractor

What are the functions?

  • Rechtspraak Citations Extractor
    1. get_citations
    2. Gets all the data about case law citing/being cited and the legislations cited from the cases in passed on DataFrame of case metadata. Requires a valid DataFrame object with a column titled 'ecli'. Returns the same Dataframe object, with 3 additional columns containing JSON strings of citation information.
  • What are the parameters?

    1. get_citations(dataframe = None, username = '', password = '', threads = 2)
    2. Parameters:
      • dataframe: Pandas DataFrame object, required
      • A Dataframe object, which must have a column titled 'ecli'. The code extracts citations for each separate ECLI in the column. A Dataframe with Rechtspraak data can be aqcuired via the rechtspraak extractor - https://pypi.org/project/rechtspraak-extractor
        Default: None
      • username: string, required, default ''
      • The username that together with the password can be used to log into LIDO.
      • password: string, required, default ''
      • The password that together with the username can be used to log into LIDO.
      • threads: int, optional, default 1
      • Option for multi-threading of LiDO requests - not recommended to go above 2, as LiDO breaks connections when overwhelmed.

    Examples

    import rechtspraak_extractor as rex
    import rechtspraak_citations_extractor as rex_citations
    -----------------------------------------------------------------------------------------------------------------------
    
    # To get the rechtspraak data in a dataframe:
    df = rex.get_rechtspraak(max_ecli=100, sd='2022-08-01', save_file='y')  # Gets 100 ECLIs from 1st August 2022
    df = get_rechtspraak_metadata(save_file='n',dataframe=df)
    # To get the citations:
    df_with_citaitons = rex_citations.get_citations(df,'username','password')
    

    License

    License: Apache 2.0

    Previously under the MIT License, as of 28/10/2022 this work is licensed under a Apache License, Version 2.0.

    Apache License, Version 2.0
    
    Copyright (c) 2022 Maastricht Law & Tech Lab
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
        
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    

    Project details


    Download files

    Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

    Source Distribution

    rechtspraak_citations_extractor-1.1.0.tar.gz (17.2 kB view details)

    Uploaded Source

    Built Distribution

    If you're not sure about the file name format, learn more about wheel file names.

    rechtspraak_citations_extractor-1.1.0-py3-none-any.whl (15.1 kB view details)

    Uploaded Python 3

    File details

    Details for the file rechtspraak_citations_extractor-1.1.0.tar.gz.

    File metadata

    File hashes

    Hashes for rechtspraak_citations_extractor-1.1.0.tar.gz
    Algorithm Hash digest
    SHA256 cc5e008da3b92c740b4c60abe207b73ebb79cb52af1994d4383a209fadc09b7d
    MD5 43b88f22ba8f73fb3d28a67efa65e5c0
    BLAKE2b-256 465ee9eb9f14ba95ced01f29f9b9f964be1f2ee15e873114c175cf3e32731032

    See more details on using hashes here.

    Provenance

    The following attestation bundles were made for rechtspraak_citations_extractor-1.1.0.tar.gz:

    Publisher: github-actions.yml on maastrichtlawtech/rechtspraak_citation_extraction

    Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

    File details

    Details for the file rechtspraak_citations_extractor-1.1.0-py3-none-any.whl.

    File metadata

    File hashes

    Hashes for rechtspraak_citations_extractor-1.1.0-py3-none-any.whl
    Algorithm Hash digest
    SHA256 8692e701426e605ddda491a4ddd75549b72b6aed263ae8b2430154c31b1eb473
    MD5 159f0726e20013fbb8204da01d55e53e
    BLAKE2b-256 86c0761be1725d75261ff9a83afe3f2a33b73f6b9c094aa90367275178718b84

    See more details on using hashes here.

    Provenance

    The following attestation bundles were made for rechtspraak_citations_extractor-1.1.0-py3-none-any.whl:

    Publisher: github-actions.yml on maastrichtlawtech/rechtspraak_citation_extraction

    Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

    Supported by

    AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page