CJW Assignment 1: Robot Arm Lab
파이썬 모듈과 서브패키지 구조를 연습하는 로봇 팔 예제입니다.
구성
cjw_assignment1.overview: 로봇 팔 소개cjw_assignment1.arm.move: 로봇 팔 이동cjw_assignment1.gripper.grasp: 그리퍼로 물체 잡기
각 모듈에는 print()를 사용하는 함수가 하나씩 들어 있습니다.
사용 예시
from cjw_assignment1.overview import describe_robot
from cjw_assignment1.arm.move import move_to_home
from cjw_assignment1.gripper.grasp import grasp_object
describe_robot()
move_to_home()
grasp_object()
설치
PyPI에 배포한 뒤에는 다음과 같이 설치할 수 있습니다.
python3 -m pip install cjw_assignment1
빌드 및 PyPI 배포
프로젝트 루트에서 실행합니다.
python3 example_usage.py
python3 -m pip install build twine
python3 -m build
python3 -m twine check dist/cjw_assignment1-0.1.0*
python3 -m twine upload dist/cjw_assignment1-0.1.0*
배포 이름과 메인 패키지 이름은 모두 cjw_assignment1입니다. 업로드할 때는
PyPI API 토큰을 사용합니다. 이미 PyPI에 등록된 이름은 사용할 수 없습니다.
코드를 수정해 다시 배포할 때는 pyproject.toml의 version을 올리고,
업로드할 파일 이름도 새 버전에 맞게 바꿉니다.
Metadata
Release files for cjw-assignment1 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjw_assignment1-0.1.0.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjw_assignment1-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / cjw_assignment1-0.1.0.tar.gz
| Download URL | cjw_assignment1-0.1.0.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34cb5b3d9c855080ceeb3425efde4804407df5d6bf65b51e690df9cc816b59cf
|
|
BLAKE2b-256 checksum How to use checksums |
7764959abd1537011bae006ce32668f4d9363c9d4980d83a5bba97ebeb8820ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / cjw_assignment1-0.1.0-py3-none-any.whl
| Download URL | cjw_assignment1-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f5319c6ea94c5aad21f9f5b14093a1dc2621e1ca1647a9906c00d27d3a716ab
|
|
BLAKE2b-256 checksum How to use checksums |
4f7ed4f0948d5aee7c20b1ff29ad08d6080770bee5b7d52c4196cf49b26c36a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|