Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
/ weeeini Public archive

Python script to add user to json file on owncloud

License

Notifications You must be signed in to change notification settings

davecanni/weeeini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

weeeini

License Version

Python script to add user to json file on owncloud.

INSTALL

Open a terminal and type these following commands:

git clone https://github.com/davecanni/weeeini
cd weeeini
sudo pip install -r requirements.txt

It requires some environment variables to run:

  • OC_URL: Url of the owncloud server
  • OC_USER: OwnCloud username
  • OC_PWD: OwnCloud password
  • USER_PATH: Path of the file with authorized users in OwnCloud (/folder/file.json)

COMMAND SYNTAX

usage: weeeini.py [-h] -n NAME [NAME ...] -s SURNAME [SURNAME ...] [-S SERIAL]
                  -t TELEGRAMID [-N NICKNAMES [NICKNAMES ...]] [-l LEVEL] [-V]
                  [-v]

required arguments:
  -n NAME [NAME ...], --name NAME [NAME ...]
                        store the name of the user
  -s SURNAME [SURNAME ...], --surname SURNAME [SURNAME ...]
                        store the surname of the user
  -t TELEGRAMID, --telegramID TELEGRAMID
                        store the telegramID of the user

optional arguments:
  -h, --help            show this help message and exit
  -S SERIAL, --serialID SERIAL
                        store the serial ID of the user (by default 000000)
  -N NICKNAMES [NICKNAMES ...], --nicknames NICKNAMES [NICKNAMES ...]
                        store the nicknames of the user
  -l LEVEL, --level LEVEL
                        store the level of the user (type int, default=3)
  -V, --version         show program's version number and exit
  -v, --verbose         increase output verbosity, debug mode

NOTES

  • The -n NAME, -s SURNAME and -t TELEGRAMID parameters are required to add the user to the file.

About

Python script to add user to json file on owncloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages