https://github.com/hitchdev/hitchexamplefiles
Example jpeg, pdf and png files which can be used for testing.
https://github.com/hitchdev/hitchexamplefiles
Last synced: 8 months ago
JSON representation
Example jpeg, pdf and png files which can be used for testing.
- Host: GitHub
- URL: https://github.com/hitchdev/hitchexamplefiles
- Owner: hitchdev
- License: mit
- Created: 2018-07-29T16:40:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T11:56:48.000Z (about 7 years ago)
- Last Synced: 2025-05-18T12:37:20.493Z (9 months ago)
- Language: Python
- Size: 466 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# HitchExampleFiles
A group of example files which can be used for testing - a big jpeg, small jpeg, pdf and png.
Uses [path.py](https://pathpy.readthedocs.io/en/stable/api.html),
so you can use path.py API to do anything with the files.
E.g.
.. code:: python
import hitchexamplefiles
from path import Path
>>> hitchexamplefiles.jpeg_large.copy(Path("/path/to/your/jpegname.jpeg"))
>>> hitchexamplefiles.jpeg_small.copy(Path("/path/to/your/jpegname.jpeg"))
>>> hitchexamplefiles.pdf_one_page.copy(Path("/path/to/your/pdf_one_page.pdf"))
>>> hitchexamplefiles.png_large.copy(Path("/path/to/your/png_large.png"))
>>> hitchexamplefiles.asset_directory.joinpath("jpeg_large.jpg")
>>> hitchexamplefiles.asset_directory.joinpath("jpeg_small.jpg")
>>> hitchexamplefiles.asset_directory.joinpath("pdf_one_page.pdf")
>>> hitchexamplefiles.asset_directory.joinpath("png_large.png")