Skip to content

Register, Docker Compose, Fast API #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

hosseinjafar
Copy link

Thanks for the nice package! I use a docker container with Ubuntu 24 on it. running apt install plastimatch was good enough to get everything to work. no need to install the compiled binaries in python manually.

The following functionality was added along with documentation and unit tests:

Register:

The register command to the Plastimatch is now implemented in pyplastimatch.py the tests are placed in test/test_register.py.

Docker compose:

Simplifies volume mounting and environment setting when running a container.

FastAPI:

I use pyplastimatch on a remote cluster as a server. Implemented pyplasti.py to call register using http post request.

@LennyN95 LennyN95 self-requested a review January 25, 2025 13:29
@LennyN95
Copy link
Collaborator

Thank you for your contribution @hosseinjafar.

The fast api implementation and updated docker file are interesting (and if they are of general interest to the community I suggest to make them publicly available in a separate repository that we can reference).

As in the current state, the Dockerfile and Compose setup are quite specific (e.g., only the registration command you add to the package is published in the fast api, no description how the referenced test files can be acquired, ..).

The path to the Dockerfile also should not be changed unless for a specific reason to maintain compatibility where possible.

@LennyN95 LennyN95 marked this pull request as draft January 25, 2025 15:17
@hosseinjafar
Copy link
Author

Fair enough!
I got the test data for registration from plastimatch registration tutorial here:
https://plastimatch.org/registration_tutorial.html

Best

…s include:\n 1. replacing _ with - in the inputs for the convert command.\n 2. automatically removing \temp\

temp_data/ from all the inputs and adding the correct path for temp_data.
implementing the api call for conver
…and not the dev command for the other containers to notice it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants