Skip to main content

Welcome to the Court Seal Rookery

This is a collection of court seals that works in tandem with the Free Law Project court seals service. You can use this system to integrate picture of court seals directly into your applications.

Original files can be found in the orig directory and an index file can be found at seals.json.

Using this Project

This system is exceedingly simple. To use this it, install the judge pics package from pypi:

pip install seal-rookery

And then use that package to get the URL of a court's seal:

>>> from seal_rookery.search import seal, ImageSizes
>>> seal("ca9", ImageSizes.SMALL)
'https://seals.free.law/v2/128/ca9.png'

Now that you have the URL of the court's seal in a useful size, just embed it in your application. Perhaps:

<img src="https://seals.free.law/v2/128/ca9.png"
     height=128 />

One thing we don't currently do is provide a consistent width for the photos. This is because our sources are not consistent, and we opted to set the height consistently instead of the width. You can work around this by using the width attribute of the img tag instead of the height (in which case the browser will scale it for you), or by just ignoring the width attribute and letting the photo have slightly varying widths on your page.

You can request images in one of the following heights:

class ImageSizes(Enum):
    SMALL = 128
    MEDIUM = 256
    LARGE = 512
    XLARGE = 1024
    ORIGINAL = "orig"

Selecting ImageSizes.ORIGINAL will give you a link to the original image that we have in our collection. You'd want to use this to make custom sized images, say.

For questions about the reliability, pricing, versioning, privacy, and security of the service see the readme file for the judge-pics repository.

Contributing

  1. Find the image and ensure it follows our quality guidelines (below).

  2. Add the image file to the orig directory.

  3. Edit seals.json to include the relevant fields for your new file.

Quality Guidelines

  1. Convert your original file to png or svg, as appropriate. If you have the ps file, include that as well.

  2. If you use transparency or the file has it, make sure the file looks OK on a background other than white. If it looks bizarre on an orange or blue background, fix it by adding a white layer on the bottom.

  3. Trim any extraneous margins and if the seal is circular, make the corners transparent.

  4. If the item was previously a jpeg or gif, it's good to clean up the splotchiness created by the jpeg compression. You'll see it if you zoom in.

Usage

We know of no instances where courts have requested a take down of their seal, however usage of government seals has caused a few stirs in the past. Don't attempt to represent the government or its agents.

Testing

Testing can run with the following command.

python -m unittest -v test

Tests are also run on every push to Github at https://github.com/freelawproject/seal-rookery

For more information on testing checkout the Github workflows directory.

New Releases

Deploying can be handled in two ways.

  1. Update the version info in setup.py.

  2. Commit to github with a tag in format v*.. (ex. v1.0.0)

or

  1. Update the version info in setup.py.

  2. Install the requirements in requirements-dev.txt

  3. Set up a config file at ~/.pypirc containing the upload locations and authentication credentials.

  4. Generate a distribution:

    python setup.py sdist

  5. Upload the distribution:

    twine upload dist/* -r pypi

Two things. First, if you are creating original work, please consider signing and emailing a contributor license to us so that we may protect the work later, if needed. We do this because we have a lot of experience with IP litigation, and this is a good way to protect a project.

Second, if you're just curious about the copyright of this repository, see the License file for details. The short version of this is you can pretty much use it however you desire.

Credit Where Due

This project inspired by the initial visualization work of @nowherenearithaca.

Release files for seal-rookery 2.3.1

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

Source distribution (sdist)

Source distribution for seal-rookery 2.3.1
File Size Uploaded
seal_rookery-2.3.1.tar.gz 15.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for seal-rookery 2.3.1
File Interpreter ABI Platform
seal_rookery-2.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 31.6 MB

Release files / seal_rookery-2.3.1.tar.gz

Download URL seal_rookery-2.3.1.tar.gz
Size 15.8 MB
Tags Source
SHA-256 checksum
How to use checksums
fd8a7e02f12403b9dd6f8241ad51d0912946ab8f329a64add736fca174279dd7
BLAKE2b-256 checksum
How to use checksums
5280af96f8a10597560e1676140ffe14fa82f0b0bd78333accdfca9262dd5c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / seal_rookery-2.3.1-py2.py3-none-any.whl

Download URL seal_rookery-2.3.1-py2.py3-none-any.whl
Size 15.8 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6506bd7b30bb505a9685ac8ac003d6c82f295629fc005767c9c87ed868bbd9dd
BLAKE2b-256 checksum
How to use checksums
49b9d891cea6ff50ff7814de54204cb0c769284dbb9d8a6280d59d646e81025c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 release files

2.2.5

2 release files

2.2.3

2 release files

2.2.1

2 release files

2.1.5

2 release files

2.1.4

2 release files

0.10.0

2 release files

0.9.31

1 release file

0.9.30

1 release file

0.9.29

1 release file

0.9.28

1 release file

0.9.27

1 release file

0.9.26

1 release file

0.9.25

1 release file

0.9.23

1 release file

0.9.22

1 release file

0.9.21

1 release file

0.9.20

3 release files

0.9.1

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