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.2.0.tar.gz (17.6 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.2.0-py3-none-any.whl (15.5 kB view details)

    Uploaded Python 3

    File details

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

    File metadata

    File hashes

    Hashes for rechtspraak_citations_extractor-1.2.0.tar.gz
    Algorithm Hash digest
    SHA256 c487407c8654d730ab1c708bd08e1d6b1b8deda8a653bae85748b37def6015fb
    MD5 b3031e0d9857486b6178231ef3d01c4c
    BLAKE2b-256 6f231523584770b86e8d698c0a11600536c693bb1ac1fbc6181836da6276514d

    See more details on using hashes here.

    Provenance

    The following attestation bundles were made for rechtspraak_citations_extractor-1.2.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.2.0-py3-none-any.whl.

    File metadata

    File hashes

    Hashes for rechtspraak_citations_extractor-1.2.0-py3-none-any.whl
    Algorithm Hash digest
    SHA256 9caf60f663f8d6720022bcdbf56c9a8576da01f24d49fc956fcf16e24d91584c
    MD5 aaca788a340219daafecb619deb8b226
    BLAKE2b-256 a70e909c6e4e56978cbd706c2c4a40b98a91217f7162ef96234eee5142ef488d

    See more details on using hashes here.

    Provenance

    The following attestation bundles were made for rechtspraak_citations_extractor-1.2.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