Skip to main content

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.
    

    Metadata

    Release files for rechtspraak-citations-extractor 1.2.0

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

    Source distribution (sdist)

    Source distribution for rechtspraak-citations-extractor 1.2.0
    File Size Uploaded
    rechtspraak_citations_extractor-1.2.0.tar.gz 17.6 kB Details

    Built distribution (wheel)

    Table of built distributions (wheels) for rechtspraak-citations-extractor 1.2.0
    File Interpreter ABI Platform
    rechtspraak_citations_extractor-1.2.0-py3-none-any.whl Python 3 none any Details

    Total release size: 33.1 kB

    Release files / rechtspraak_citations_extractor-1.2.0.tar.gz

    Download URL rechtspraak_citations_extractor-1.2.0.tar.gz
    Size 17.6 kB
    Tags Source
    SHA-256 checksum
    How to use checksums
    c487407c8654d730ab1c708bd08e1d6b1b8deda8a653bae85748b37def6015fb
    BLAKE2b-256 checksum
    How to use checksums
    6f231523584770b86e8d698c0a11600536c693bb1ac1fbc6181836da6276514d
    Upload date
    Uploaded using Trusted Publishing?
    What is trusted publishing?
    Yes
    Uploaded via twine/6.1.0 CPython/3.12.9

    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.

    PyPI Publish Attestation

    PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

    Signed by GitHub Actions, verified by PyPI on Apr 22, 2025.

    Transparency log

    Release files / rechtspraak_citations_extractor-1.2.0-py3-none-any.whl

    Download URL rechtspraak_citations_extractor-1.2.0-py3-none-any.whl
    Size 15.5 kB
    Tags Python 3
    SHA-256 checksum
    How to use checksums
    9caf60f663f8d6720022bcdbf56c9a8576da01f24d49fc956fcf16e24d91584c
    BLAKE2b-256 checksum
    How to use checksums
    a70e909c6e4e56978cbd706c2c4a40b98a91217f7162ef96234eee5142ef488d
    Upload date
    Uploaded using Trusted Publishing?
    What is trusted publishing?
    Yes
    Uploaded via twine/6.1.0 CPython/3.12.9

    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.

    PyPI Publish Attestation

    PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

    Signed by GitHub Actions, verified by PyPI on Apr 22, 2025.

    Transparency log

    Release history Release notifications | RSS feed

    This release

    1.2.0 This release

    2 release files

    1.1.0

    2 release files

    1.0.13

    1 release file

    1.0.12

    1 release file

    1.0.11

    1 release file

    1.0.10

    1 release file

    1.0.9

    1 release file

    1.0.8

    1 release file

    1.0.7

    1 release file

    1.0.6

    1 release file

    1.0.5

    1 release file

    1.0.4

    1 release file

    1.0.3

    1 release file

    1.0.2

    1 release file

    1.0.1

    1 release file

    1.0.0

    1 release file

    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