No description
fc9dbe9e57
Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/pipenv/project.py", line 527, in _parse_pipfile return tomlkit.parse(contents) File "/usr/lib/python3.7/site-packages/pipenv/vendor/tomlkit/api.py", line 49, in parse return Parser(string).parse() File "/usr/lib/python3.7/site-packages/pipenv/vendor/tomlkit/parser.py", line 152, in parse body.append(key, value) File "/usr/lib/python3.7/site-packages/pipenv/vendor/tomlkit/container.py", line 129, in append raise KeyAlreadyPresent(key) tomlkit.exceptions.KeyAlreadyPresent: Key "packages" already exists. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/pipenv", line 11, in <module> load_entry_point('pipenv==2018.11.15.dev0', 'console_scripts', 'pipenv')() File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 64, in new_func return ctx.invoke(f, obj, *args, **kwargs) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/usr/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/lib/python3.7/site-packages/pipenv/cli/command.py", line 254, in install editable_packages=state.installstate.editables, File "/usr/lib/python3.7/site-packages/pipenv/core.py", line 1741, in do_install pypi_mirror=pypi_mirror, File "/usr/lib/python3.7/site-packages/pipenv/core.py", line 578, in ensure_project if project.required_python_version: File "/usr/lib/python3.7/site-packages/pipenv/project.py", line 243, in required_python_version required = self.parsed_pipfile.get("requires", {}).get( File "/usr/lib/python3.7/site-packages/pipenv/project.py", line 509, in parsed_pipfile parsed = self._parse_pipfile(contents) File "/usr/lib/python3.7/site-packages/pipenv/project.py", line 531, in _parse_pipfile return toml.loads(contents) File "/usr/lib/python3.7/site-packages/pipenv/vendor/toml/decoder.py", line 425, in loads original, pos) toml.decoder.TomlDecodeError: What? packages already exists?{'source': [{'url': 'https://pypi.python.org/simple', 'verify_ssl': True, 'name': 'pypi'}], 'packages': {'requests': '*', 'pyotp': '*'}, 'dev-packages': {}, 'requires': {'python_version': '3.7'}} (line 15 column 1 char 173) |
||
---|---|---|
.gitignore | ||
Pipfile | ||
Pipfile.lock | ||
README.md | ||
ungleich | ||
ungleich_account.py | ||
ungleich_config.py | ||
ungleich_dns.py | ||
ungleich_pay.py | ||
ungleich_ripe.py | ||
ungleich_ssh_key.py | ||
ungleich_weather.py |
ungleich cli
This CLI is used for day-to-day tasks used at ungleich. It is intended to be used by ungleich engineers and skilled customers.
Requirements / Installation
- ensure you have python3 and pipenv
- git clone this repo
- cd into this repo
- run the following command
pipenv install
pipenv shell
Usage general
ungleich --help
Usage: Weather
ungleich weather
Usage: Config
ungleich config-add \
--name <otp username>
--realm <otp realm>
--seed <otp seed>
Usage: DNS
ungleich dns \
--set-reverse <ip>
--user <user_id>
--email <email>
--name mirror.example.com
Usage: RIPE
Creating a new route6 object:
ungleich ripe-add-route6 \
--network 2a09:2947::/32
--description "First REST /32"
--password "very secure"
Usage: Account
Creating a new account object:
ungleich account \
--create-user <username>
--name <firstname>
--lastname <lastname>
--email <email>
Usage: SSH Key
Requires you to have https://code.ungleich.ch/ungleich-public/ungleich-ssh-keys/ checked out in ~/vcs/ungleich-ssh-keys
ungleich sshkey --key raul.ascencio --host dev.raul.ungleich.cloud