Skip to main content

annofab-3dpc-editor-cli

Annofabの3次元プロジェクトを操作するためのCLIです。

Build Status PyPI version Python Versions Documentation Status

Install

$ pip install annofab-3dpc-editor-cli

コマンドサンプル

https://annofab-3dpc-editor-cli.readthedocs.io/ja/latest/user_guide/command_sample.html 参照

バージョンの確認方法

$ anno3d version
annofab-3dpc-editor-cli 0.2.2a1

開発環境

  • poetry
    • Poetry version 1.8.3
  • python 3.12

開発環境初期化

poetryのインストール手順は、このファイル下部のpoetryのインストール手順を参照

poetry install

poetryのインストール手順

poetryのインストール手順一例を以下に示す
2020/05/21 ubuntu 18.04 にて確認

pyenv

システムにpython 3.12を直接インストールして使うならpyenvは要らない

前提ライブラリなどのインストール

ubuntu 22.04の場合
sudo apt-get update


sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev python3-openssl
ubuntu 18.04の場合
sudo apt-get update

sudo apt-get install build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git

pyenvとpythonのインストール

curl https://pyenv.run | bash

コンソールに、以下のような設定すべき内容が出力されるので.bashrcなどに設定

export PATH="/home/vagrant/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv install 3.12.4
pyenv global 3.12.4

pipx

直接 poetry をインストールするなら要らない

python -m pip install --user pipx
python -m pipx ensurepath

completionを効かせたいときは、pipx completions の実行結果に従って設定する

$ pipx completions

Add the appropriate command to your shell's config file
so that it is run on startup. You will likely have to restart
or re-login for the autocompletion to start working.

bash:
    eval "$(register-python-argcomplete pipx)"

zsh:
    To activate completions for zsh you need to have
    bashcompinit enabled in zsh:

    autoload -U bashcompinit
    bashcompinit

    Afterwards you can enable completion for pipx:

    eval "$(register-python-argcomplete pipx)"

tcsh:
    eval `register-python-argcomplete --shell tcsh pipx`

fish:
    register-python-argcomplete --shell fish pipx | .

poetry

pipx install poetry
poetry completions bash | sudo tee /etc/bash_completion.d/poetry.bash-completion

PyPIへの公開

GitHubのReleasesからリリースを作成してください。 GitHub Actionsにより自動でPyPIに公開されます。 バージョン情報は、poetry build時にpoetry-dynamic-versioningによって、Gitのバージョンタグから生成されます。

手動でPyPIに公開する場合は、以下のコマンドを実行してください。

# VSCode Dev Containersでは、`/usr/local/lib/python3.12/dist-packages/`にインストールしようとするため、`sudo`で実行する必要があります。
$ sudo poetry self add "poetry-dynamic-versioning[plugin]@1.4.0"
$ make publish

Metadata

Release files for annofab-3dpc-editor-cli 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for annofab-3dpc-editor-cli 0.4.2
File Size Uploaded Provenance Actions
annofab_3dpc_editor_cli-0.4.2.tar.gz 39.8 kB Without provenance Details for annofab_3dpc_editor_cli-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for annofab-3dpc-editor-cli 0.4.2
File Interpreter ABI Platform Actions
annofab_3dpc_editor_cli-0.4.2-py3-none-any.whl Python 3 none any Details for annofab_3dpc_editor_cli-0.4.2-py3-none-any.whl

Total release size: 93.8 kB

Release files / annofab_3dpc_editor_cli-0.4.2.tar.gz

Download URL annofab_3dpc_editor_cli-0.4.2.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e13328dfd19294e34a01a067c335d85a979962b11c901c8758750fefd17066be
BLAKE2b-256 checksum
How to use checksums
a8307838666e160112b97efd6731155849221275999370f0bb61c8badd7beed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.12.12 Linux/6.11.0-1018-azure

Release files / annofab_3dpc_editor_cli-0.4.2-py3-none-any.whl

Download URL annofab_3dpc_editor_cli-0.4.2-py3-none-any.whl
Size 54.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
413edd76f792afaedcb443ae9691452b60471408d383b66d3b93306907afb268
BLAKE2b-256 checksum
How to use checksums
9c6c4d8859c33a645ec88164386a771f4ae3104467805b1a1851cb986c42c747
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.12.12 Linux/6.11.0-1018-azure

Security for annofab-3dpc-editor-cli 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page