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

開発環境

  • 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.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

annofab_3dpc_editor_cli-0.2.0-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: annofab-3dpc-editor-cli-0.2.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.2 Linux/4.18.0-16-generic

File hashes

Hashes for annofab-3dpc-editor-cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3cf055c5b14dda2dcf1819b7e0d8c59d355128797bf90fa0fd722880be559ef5
MD5 0920d17ac93b57e39ba460501cca1800
BLAKE2b-256 0409fa05d987a47707522055b39172c1788480ab98a64c57dc1ce5f7be273320

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for annofab_3dpc_editor_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3722b8f2949a59144c8eb1be60bef676b53b4011caa4b8e453501945d2fd3fc
MD5 8c81cf34ab2dd1b5260584bd11162616
BLAKE2b-256 943b4ea85988043b8ad90222ac6d3b952a54b11ac7bb1344caf1021bb54919ed

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