{"id":23054005,"url":"https://github.com/emcecs/ecs-account-usage","last_synced_at":"2025-04-03T04:40:45.086Z","repository":{"id":145105763,"uuid":"85607658","full_name":"EMCECS/ecs-account-usage","owner":"EMCECS","description":"Creates a report and endpoint providing information about the usage of the storage per owner.","archived":false,"fork":false,"pushed_at":"2017-06-15T20:48:36.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-08T18:45:42.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EMCECS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-20T17:44:00.000Z","updated_at":"2021-02-11T12:41:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4f31d9e-0574-4b6f-83be-0e683d967ed9","html_url":"https://github.com/EMCECS/ecs-account-usage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMCECS%2Fecs-account-usage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMCECS%2Fecs-account-usage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMCECS%2Fecs-account-usage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EMCECS%2Fecs-account-usage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EMCECS","download_url":"https://codeload.github.com/EMCECS/ecs-account-usage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939177,"owners_count":20857916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T00:32:26.906Z","updated_at":"2025-04-03T04:40:45.059Z","avatar_url":"https://github.com/EMCECS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecs-account-usage\nCreates a basic report and a Swift compatible endpoint providing information about the usage of the ECS storage per bucket owner.\n\n## Usage\n\n### Get the help menu:\n\n```python3 ./account_usage.py --help```\n\n### Basic Report:\nuse:\n\n ```python3 ./account_usage.py -u \u003cyour system_role_account_user\u003e```\n\nor:\n\n```\npython3 ./account_usage.py -e https://portal.ecstestdrive.com --token-endpoint https://portal.ecstestdrive.com/login -u \u003cyour system_role_account_user\u003e -p \u003cpassword\u003e -t temp.txt\n```\n\n ### Launch the endpoint\n use:\n\n ```python3 ./account_endpoint.py -u \u003cyour system_role_account_user\u003e```\n\nor:\n\n```\npython3 ./account_endpoint.py -e https://portal.ecstestdrive.com --token-endpoint https://portal.ecstestdrive.com/login --username \u003cyour system_role_account_user\u003e --password \u003cpassword\u003e -t temp.txt -s https://swift.ecstestdrive.com --no-endpoint-ssl --port 5000\n\n```\n\n ## Notes\n\n The token used after a sucessful login is saved in /tmp.  If you are using Windows you need to use the '-t c:\\temp' to store the file in c:\\temp\n\nIf you are planning to use SSL here is a good reference on how to generate a self-sign certificte\nhttps://help.ubuntu.com/lts/serverguide/certificates-and-security.html\n\nIf you run into trouble installing the cryptographic library you may need to install the development tools for Python by running the following commmand:\n\nUbuntu:\n```\n$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev\n```\nRHEL or Fedora:\n```\n$ sudo yum install gcc libffi-devel python-devel openssl-devel\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femcecs%2Fecs-account-usage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femcecs%2Fecs-account-usage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femcecs%2Fecs-account-usage/lists"}