A collection of court seals that can be used in any project.
Project description
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
-
Find the image and ensure it follows our quality guidelines (below).
-
Add the image file to the
orig
directory. -
Edit
seals.json
to include the relevant fields for your new file.
Quality Guidelines
-
Convert your original file to
png
orsvg
, as appropriate. If you have theps
file, include that as well. -
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.
-
Trim any extraneous margins and if the seal is circular, make the corners transparent.
-
If the item was previously a
jpeg
orgif
, it's good to clean up the splotchiness created by thejpeg
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.
-
Update the version info in setup.py.
-
Commit to github with a tag in format v*.. (ex. v1.0.0)
or
-
Update the version info in setup.py.
-
Install the requirements in requirements-dev.txt
-
Set up a config file at ~/.pypirc containing the upload locations and authentication credentials.
-
Generate a distribution:
python setup.py sdist
-
Upload the distribution:
twine upload dist/* -r pypi
Copyright
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file seal_rookery-2.2.5.tar.gz
.
File metadata
- Download URL: seal_rookery-2.2.5.tar.gz
- Upload date:
- Size: 15.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16c8d68875f2105ff44354573be6ef098e631af97e9ac00fcd06d6614e6db17e |
|
MD5 | 729f042b082af870cd043a8e5c350c06 |
|
BLAKE2b-256 | 438a69bdf7bc461ac51efdef7cab167f298d0866369e45d632debc450bcfc387 |
File details
Details for the file seal_rookery-2.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: seal_rookery-2.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 15.8 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1bcca9c20540058ae2477b5d40e374037958e771437b1fca5338682bb8a6034 |
|
MD5 | b64f5a7b49c9f153c5317a525a352bcd |
|
BLAKE2b-256 | 5dab22bdd51edc75ffbaa7e9e7b9d03ba5397ee18dc1e8338217dd14c3d957ec |