Package: seal-rookery
Welcome to the Court Seal RookeryThis 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 theorigdirectory and an index file can be found atseals.json.Using this ProjectThis system is exceedingly simple. To use this it, install the judge pics package from pypi:pip install seal-rookeryAnd 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:<imgsrc="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 thewidthattribute of theimgtag instead of theheight(in which case the browser will scale it for you), or by just ignoring thewidthattribute and letting the photo  have slightly varying widths on your page.You can request images in one of the following heights:classImageSizes(Enum):SMALL=128MEDIUM=256LARGE=512XLARGE=1024ORIGINAL="orig"SelectingImageSizes.ORIGINALwill 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 seethe readme file for the judge-pics repository.ContributingFind the image and ensure it follows our quality guidelines (below).Add the image file to theorigdirectory.Editseals.jsonto include the relevant fields for your new file.Quality GuidelinesConvert your original file topngorsvg, as appropriate. If
you have thepsfile, 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 ajpegorgif, it's good to clean
up the splotchiness created by thejpegcompression. You'll see
it if you zoom in.UsageWe know of no instances where courts have requested a take down of their
seal, however usage of government seals has caused afewstirsin the past.
Don't attempt to represent the government or its agents.TestingTesting can run with the following command.python -m unittest -v testTests are also run on every push to Github athttps://github.com/freelawproject/seal-rookeryFor more information on testing checkout the Github workflows directory.New ReleasesDeploying 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)orUpdate the version info in setup.py.Install the requirements in requirements-dev.txtSet up a config file at ~/.pypirc containing the upload locations and
authentication credentials.Generate a distribution:python setup.py sdistUpload the distribution:twine upload dist/* -r pypiCopyrightTwo 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 DueThis project inspired by the initialvisualization
workof @nowherenearithaca.