-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
301 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: python-ci | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
python-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: curl -LsS https://radia.run | bash -s python-ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Read The Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
version: 2 | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.9" | ||
jobs: | ||
pre_build: | ||
- curl https://radia.run | bash -s readthedocs | ||
sphinx: | ||
configuration: docs/conf.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,13 @@ | ||
### Photo Library Tools | ||
### rnpix | ||
|
||
For a demo, visit [rnpix.github.io](https://rnpix.github.io). | ||
Photo library tools | ||
|
||
The photo library is organized into "day" directories of the form | ||
`YYYY/MM-DD/*.{jpg,mov,...}`. In each day directory, `index.txt` | ||
contains: | ||
Learn more at http://github.com/robnagler/rnpix. | ||
|
||
```text | ||
foo.jpg Some description for foo on one line | ||
bar.mov A movie of something | ||
``` | ||
|
||
The file may have comments with a `#` starting on the first character. (Historical version allows a `:` after the image name.) | ||
|
||
The tools search `YY/MM-DD` directories to create `index.txt` and uses it to create a searchable, static HTML tree: | ||
|
||
1. [identify](rnpix/pkcli/identify.py) appends to `index.txt` from the images in a day directory, prompting the user for each unidentified image. | ||
2. [generate](rnpix/pkcli/generate.py) reads `index.txt` to create `index.html` and thumbnail directories `50` (pixel) and `200`, which are referenced in `index.html` | ||
3. [indexer](rnpix/pkcli/indexer.py) reads `index.txt` to create `rnpix-index.js`, which is read by [rnindex](rnpix/package_data/static/rnindex.js) to find images by their description. | ||
4. [fix](rnpix/pkcli/fix.py) reads `index.txt` and images in directory, and verifies and fixes the format. | ||
|
||
#### Acknowledgements | ||
|
||
Thanks to the excellent [js-search](https://github.com/cebe/js-search) by [Carsten Brandt](http://cebe.cc/about). It was first transliterated from the PHP | ||
to Python, and then rewritten to match the picture indexing problem, | ||
which was significantly different from the general HTML problem `js-search` | ||
solves. I wouldn't have gotten the idea of how to implement a search | ||
engine in Javascript without Carsten's project. | ||
|
||
The rest of the code is all mine and evolved over a couple of decades | ||
from a collection of simple Perl programs to be transformed this | ||
year to Python. | ||
Documentation: https://rnpix.readthedocs.io | ||
|
||
#### License | ||
|
||
License: http://www.apache.org/licenses/LICENSE-2.0.html | ||
License: https://www.apache.org/licenses/LICENSE-2.0.html | ||
|
||
Copyright (c) 2016 Robert Nagler. All Rights Reserved. | ||
Copyright (c) 2024 Rob Nagler. All Rights Reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[build-system] | ||
requires = ["chronver", "setuptools>=66"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
authors = [ | ||
{ name = "Rob Nagler", email = "rnpix@robnagler.com" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"exif", | ||
"pykern", | ||
] | ||
description = "Photo library tools" | ||
dynamic = ["version"] | ||
name = "rnpix" | ||
readme = "README.md" | ||
|
||
[project.scripts] | ||
rnpix = "rnpix.rnpix_console:main" | ||
|
||
[project.urls] | ||
Homepage = "http://github.com/robnagler/rnpix" | ||
|
||
[tool.setuptools.package-data] | ||
rnpix = ["package_data/**"] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["rnpix*"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
# | ||
""":mod:`rnpix` package | ||
:copyright: Copyright (c) 2024 Rob Nagler. All Rights Reserved. | ||
:license: https://www.apache.org/licenses/LICENSE-2.0.html | ||
""" | ||
import pkg_resources | ||
|
||
try: | ||
# We only have a version once the package is installed. | ||
__version__ = pkg_resources.get_distribution("rnpix").version | ||
except pkg_resources.DistributionNotFound: | ||
pass |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters