{"id":13610462,"url":"https://github.com/daboth/pagan","last_synced_at":"2026-01-14T08:17:26.616Z","repository":{"id":23952682,"uuid":"27334533","full_name":"daboth/pagan","owner":"daboth","description":"Python avatar generator for absolute nerds","archived":false,"fork":false,"pushed_at":"2025-01-24T10:12:33.000Z","size":99,"stargazers_count":307,"open_issues_count":5,"forks_count":44,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-28T21:26:03.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daboth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-30T12:13:28.000Z","updated_at":"2025-08-18T15:11:25.000Z","dependencies_parsed_at":"2023-01-14T00:07:52.678Z","dependency_job_id":null,"html_url":"https://github.com/daboth/pagan","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/daboth/pagan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboth%2Fpagan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboth%2Fpagan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboth%2Fpagan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboth%2Fpagan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daboth","download_url":"https://codeload.github.com/daboth/pagan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboth%2Fpagan/sbom","scorecard":{"id":316327,"data":{"date":"2025-08-11","repo":{"name":"github.com/daboth/pagan","commit":"48b2ae053aac6a539be2bf316eb43ede599f951f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":7,"reason":"Found 11/15 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: pipCommand not pinned by hash: Dockerfile:12","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T00:15:07.312Z","repository_id":23952682,"created_at":"2025-08-18T00:15:07.312Z","updated_at":"2025-08-18T00:15:07.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:01:44.914Z","updated_at":"2026-01-14T08:17:26.582Z","avatar_url":"https://github.com/daboth.png","language":"Python","readme":"pagan\n=====\n\nWelcome to the Python Avatar Generator for Absolute Nerds.\n\n**Current version: 0.4.4**\n\nView the change history [here](CHANGELOG.md).\n\nRemember those good old days when your imagination was a big part of the\ncomputer gaming experience? Hardware limitations forced you to fill the void\nleft by poorly pixelated images. Pagan brings back those nostalgic feelings\nby generating **identicons** in an old-school style inspired by retro\nroleplaying adventure games.\n\nPagan hashes input strings to generate unique avatar images intended for use as\nprofile pictures in web applications. These images can be used to replace\ndefault user images for new accounts, or to enhance comment sections by visually\nrepresenting a user's IP address or username.\n\n**Pagan is currently under development. It can perform the following functions:**\n\n* Generate identicons with unique colors and gear based on any input string.\n* Use multiple hash functions from within Python's hashlib.\n* Create avatar images to fit a specific resolution.\n* Remap 16x16 generated pixelmaps to a required image size.\n* Expand generated pagans by adding new weapons or gear.\n\nEnjoy the nostalgia!\n\n### Some example avatars hashed with SHA512:\n\nInput  | Avatar\n------------- | -------------\npagan  | ![pagan](/images/pagan.png)\npython | ![python](/images/python.png)\navatar | ![avatar](/images/avatar.png)\ngithub | ![github](/images/github.png)\nretro | ![retro](/images/retro.png)\npiece of cake | ![piece of cake](/images/piece%20of%20cake.png)\nhash me if you can | ![hash me if you can](/images/hash%20me%20if%20you%20can.png)\n\n### Installation:\n\nTo install Pagan, first clone this repository:\n```\n\u003e\u003e git clone https://github.com/daboth/pagan.git\n```\nThen, enter this command at the terminal to manually install Pagan:\n```\n\u003e\u003e python setup.py install\n```\nAlternatively, use this command to install pagan via pip:\n```\n\u003e\u003e pip install pagan\n```\n\n### Python usage example:\n```python\n# Import the pagan module.\nimport pagan\n\n# Acquire an arbitrary string.\ninpt = 'pagan'\n\n# Use pagan to generate an avatar object based on an input string.\n# Optional: You may specify which hash function Pagan should use.\n# The functions are available as constants.\n# Default: MD5.\nimg = pagan.Avatar(inpt, pagan.SHA512)\n\n# Open the avatar image in an\n# external image viewer.\nimg.show()\n\n# Set an output path and a file name.\n# You don't need to specify a file ending.\n# Choose a path depending on your OS.\noutpath = 'output/'\nfilename = inpt\n\n# Saves the avatar image as a .png file\n# by omitting the path and name. The\n# file endings will be generated automatically.\nimg.save(outpath, filename)\n\n# You can change the avatar input and\n# hash function anytime.\nimg.change('new input', pagan.SHA256)\n```\n\n### Command Line Interface\n\nThe pagan command line interface can be used to generate avatars without needing\nto write a python script:\n```\n\u003e\u003e pagan [-h] [--show] [--output OUTPUT] [--hash HASH] input [input ...]\n```\n\nFor example, typing\n```\n\u003e\u003e pagan hello\n```\nwill generate an avatar from the string 'hello' and save it in the current\nworking directory.\n\nFor more information, execute Pagan using the *-h* help parameter:\n```\n\u003e\u003e pagan -h\n```\n\n### Webserver\n\nA demo of Pagan can be run in a webserver application. To access the Pagan demo,\nexecute the following instructions from the webserver directory:\n```\n\u003e\u003e cd /tools/webserver/\n\u003e\u003e python webserver.py\n```\nBeware: This demo of Pagan will fill your temporary directory with generated\nimage files. Do not run it in production!\n\nThe webserver will serve from localhost port 8080. Open this address in your\nbrowser window:\n```\nhttp://127.0.0.1:8080/\n```\n\n### Supported Hashes\n\nHash     | Constant\n-------- | --------\nmd5 | pagan.MD5\nsha1 | pagan.SHA1\nsha224 | pagan.SHA224\nsha256 | pagan.SHA256\nsha384 | pagan.SHA384\nsha512 | pagan.SHA512\n\n### Testing\n\nTo test Pagan, you must install either the pytest or tox Python modules.\nConfigure tox.ini to test different Python versions.\n\n### Docker\n\nTo use pagan within Docker, you must build the Docker image with:\n\n```\n\u003e\u003e docker build -t pagan .\n```\n\nThen, run docker image\n\n```\n\u003e\u003e docker run -d -p 8080:8080 -t pagan\n```\n\nThe webserver inside Docker will serve from localhost port 8080. Open this address in your\nbrowser window:\n```\nhttp://127.0.0.1:8080/\n```\n\nIf you want to use PAGAN CLI, you just have to look for the IP Address of the Docker container and then connect through ssh with user: pagan and pass: pagan, like this:\n\n```\n\u003e\u003e ssh -X pagan@dockercontainerip\n```\n\n\n#### Using py.test\n\n```\n\u003e\u003e pip install pytest\n\u003e\u003e pytest\n```\n\n#### Using tox\n\n```\n\u003e\u003e pip install tox\n\u003e\u003e tox\n```\n","funding_links":[],"categories":["Image Processing","资源列表","Imagery","图像处理","Python","Image Processing [🔝](#readme)","Awesome Python"],"sub_categories":["图像处理","Image Processing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboth%2Fpagan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaboth%2Fpagan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboth%2Fpagan/lists"}