Skip to main content

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

Project description

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.1

開発環境

  • poetry
    • Poetry version 1.0.5
  • python 3.8

開発環境初期化

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

poetry install

poetryのインストール手順

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

ローカルの環境に以下の手順でインストールする以外に, python 3.8 および poetry の導入がなされた docker/Dockerfile を用いても良い.

pyenv

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

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
curl https://pyenv.run | bash

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

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

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への公開

$ make publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

annofab-3dpc-editor-cli-0.2.1.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

annofab_3dpc_editor_cli-0.2.1-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file annofab-3dpc-editor-cli-0.2.1.tar.gz.

File metadata

  • Download URL: annofab-3dpc-editor-cli-0.2.1.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.3 Linux/5.15.0-76-generic

File hashes

Hashes for annofab-3dpc-editor-cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a4ac4197f6f349e67242ccd3bbd55b02895a564f4e7eda38b5a17ec382cc47bb
MD5 d10945faacf60283b11dfcd92fe406e9
BLAKE2b-256 82c870281198a053d8e952686f0a76abee2596318208dcad6e3a4a1ab11fe06d

See more details on using hashes here.

File details

Details for the file annofab_3dpc_editor_cli-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for annofab_3dpc_editor_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3d412616121762ff976364ddb9561e8bde00d19464010415c8b5cba9747d8cc
MD5 939543b1c856354bf9aa5af7076afc48
BLAKE2b-256 118c12298576b7c5f8406dfeca9e57aa0cf90171e3c2bb7d3093c7cc26b444c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page