No description
Find a file
2025-06-24 15:26:11 +03:00
src Update filenames & to include user-agent header in http requests 2025-06-24 15:26:11 +03:00
tests Update filenames & to include user-agent header in http requests 2025-06-24 15:26:11 +03:00
.gitignore Initial commit 2025-06-24 14:15:11 +03:00
LICENSE Create LICENSE 2025-06-24 14:41:34 +03:00
README.md Update project name 2025-06-24 14:46:45 +03:00
tpdne.nimble Update project name 2025-06-24 14:46:45 +03:00

tpdne

Fetch and optionally save AI-generated faces from thispersondoesnotexist.com

Installation

  • Run this command in your project directory:
nimble install tpdne

Usage

Import the package

import tpdne

Fetch a random face

let img = fetchImage()

Optionally save it to a file

saveImage(img, "random_face.jpg")

Tests

  • To run tests, simply run this command:
nimble test -d:ssl

Contributing

Contributions are welcome! Feel free to create an issue or open a pull request.

Credits

Philip Wang (@lucidrains) - creator of thispersondoesnotexist.com

License

This project is licensed under the terms of the MIT License.

SPDX-License-Identifier: MIT