No description
Find a file
PCoder fc9dbe9e57 Fix multiple packages error + add tabulate
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)
2019-08-20 13:52:12 +05:30
.gitignore Update .gitignore: ignroe .idea folder 2019-08-13 14:47:32 +05:30
Pipfile Fix multiple packages error + add tabulate 2019-08-20 13:52:12 +05:30
Pipfile.lock Fix multiple packages error + add tabulate 2019-08-20 13:52:12 +05:30
README.md updated readme 2019-06-11 21:11:27 -04:00
ungleich #6430: add customers-list feature 2019-08-13 12:00:19 +05:30
ungleich_account.py added account creation command 2019-05-30 05:23:43 -04:00
ungleich_config.py config to read/store user data in json file 2019-06-11 20:57:55 -04:00
ungleich_dns.py add response print 2019-06-12 21:02:04 -04:00
ungleich_pay.py #6430: display response nicely in tabular format 2019-08-20 11:50:27 +05:30
ungleich_ripe.py update 2019-05-12 12:22:14 +02:00
ungleich_ssh_key.py Add usage description, --bugs 2019-06-08 19:18:37 +02:00
ungleich_weather.py + weather header 2019-06-06 16:15:04 +02:00

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