ns-lab-aws


Namens-lab-aws JSON
Version 23.6.9.post1349 PyPI version JSON
download
home_page
SummaryAWS Console Tool
upload_time2023-06-09 10:54:17
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords aws s3 bucket
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Console for AWS

## Install
```sh
pip install ns-lab-aws
```

## Initialize
```sh
python -m ns_lab_aws.init
```

Will be created "logging.conf" and ".env" with default values

## Set AWS credentials
```sh
AWS_KEY=eEXAMPLEoIAN88J7LAH45X
AWS_SECRET=eEXAMPLEo2D4zGlMlwNrn7vC/rmKzxXz6X0cgj/
AWS_REGION=eu-central-1
```

## Run

### Help Info
```sh
python -m ns_lab_aws.manager --help
```
```sh
(venv) salavat@Linux AWS % python -m ns_console.client --help
usage: client.py [-h] [--list] [--create] [--delete]
                 [--upload] [--download] [--content]
                 [--force] [-b BUCKET] [-f FILE] [-d DIR]

AWS S3 Buckets

options:
  -h, --help            show this help message and exit
  --list                List all buckets
  --create              Create bucket
  --delete              Delete bucket
  --upload              Upload file to bucket
  --download            Download file from bucket
  --content             Show bucket content
  --force               Force delete bucket
  -b BUCKET, --bucket BUCKET
                        Bucket name
  -f FILE, --file FILE  File name
  -d DIR, --dir DIR     Directory name
```

### Show all buckets
```sh
python -m ns_lab_aws.manager --list
```
```sh
(venv) salavat@Linux AWS % python -m ns_console.client --list
                                                                                                            
                                               AWS S3 Buckets                                               
                                                                                                            
  ID   Files   Bucket                                                   Location             Created        
 ────────────────────────────────────────────────────────────────────────────────────────────────────────── 
  1        2   ns-lab.open-storage                                      EU-CENTRAL-1   2023-02-14 08:45:55  
  2        0   aws-sam-cli-managed-default-samclisourcebucket-1agj41…   EU-CENTRAL-1   2023-04-03 14:34:25  
  3        4   backname                                                 EU-CENTRAL-1   2023-06-07 13:32:36  
  4        0   2023-06-08-my-bucket                                     EU-CENTRAL-1   2023-06-08 06:02:00  
  5        2   new-storage4                                             EU-CENTRAL-1   2023-02-15 20:15:51  
  6       10   new-storage3                                             EU-CENTRAL-1   2023-02-15 14:00:37  
  7        1   zappa-s3-test1                                           EU-CENTRAL-1   2023-04-17 09:27:41  
  8      189   ns-lab-web                                               EU-WEST-3      2022-12-03 09:15:52 
```

### Create new S3 Bucket
```sh
python -m ns_lab_aws.manager --create -b 'project-8.console'
```

### Delete S3 Bucket
```sh
python -m ns_lab_aws.manager --delete -b 'project-8.console'
```

### Show S3 Bucket content
```sh
python -m ns_lab_aws.manager  --content -b 'backname'  
```

```sh
                                                                                   
                              Files in AWS S3 Bucket                               
                                                                                   
   ID    Path   File                  Extension        Size         Created        
 ───────────────────────────────────────────────────────────────────────────────── 
   1            4100020573.pdf        PDF         350.64 KB   2023-06-07 19:34:09  
   2            Docker.dmg            DMG          590.5 MB   2023-06-07 19:35:26  
   3            flower.jpeg           JPEG        202.35 KB   2023-06-07 19:39:00  
   4            my_pdf_document.pdf   PDF         350.64 KB   2023-06-07 19:31:02  
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ns-lab-aws",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "aws,s3 bucket",
    "author": "",
    "author_email": "Salavat Nigmatullin <salavat@nigmatullin.net>",
    "download_url": "https://files.pythonhosted.org/packages/ce/56/22c4907515fcc251ae1c4d665685f000a5cca8356f650b105ab53b75998f/ns_lab_aws-23.6.9.post1349.tar.gz",
    "platform": null,
    "description": "# Console for AWS\n\n## Install\n```sh\npip install ns-lab-aws\n```\n\n## Initialize\n```sh\npython -m ns_lab_aws.init\n```\n\nWill be created \"logging.conf\" and \".env\" with default values\n\n## Set AWS credentials\n```sh\nAWS_KEY=eEXAMPLEoIAN88J7LAH45X\nAWS_SECRET=eEXAMPLEo2D4zGlMlwNrn7vC/rmKzxXz6X0cgj/\nAWS_REGION=eu-central-1\n```\n\n## Run\n\n### Help Info\n```sh\npython -m ns_lab_aws.manager --help\n```\n```sh\n(venv) salavat@Linux AWS % python -m ns_console.client --help\nusage: client.py [-h] [--list] [--create] [--delete]\n                 [--upload] [--download] [--content]\n                 [--force] [-b BUCKET] [-f FILE] [-d DIR]\n\nAWS S3 Buckets\n\noptions:\n  -h, --help            show this help message and exit\n  --list                List all buckets\n  --create              Create bucket\n  --delete              Delete bucket\n  --upload              Upload file to bucket\n  --download            Download file from bucket\n  --content             Show bucket content\n  --force               Force delete bucket\n  -b BUCKET, --bucket BUCKET\n                        Bucket name\n  -f FILE, --file FILE  File name\n  -d DIR, --dir DIR     Directory name\n```\n\n### Show all buckets\n```sh\npython -m ns_lab_aws.manager --list\n```\n```sh\n(venv) salavat@Linux AWS % python -m ns_console.client --list\n                                                                                                            \n                                               AWS S3 Buckets                                               \n                                                                                                            \n  ID   Files   Bucket                                                   Location             Created        \n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \n  1        2   ns-lab.open-storage                                      EU-CENTRAL-1   2023-02-14 08:45:55  \n  2        0   aws-sam-cli-managed-default-samclisourcebucket-1agj41\u2026   EU-CENTRAL-1   2023-04-03 14:34:25  \n  3        4   backname                                                 EU-CENTRAL-1   2023-06-07 13:32:36  \n  4        0   2023-06-08-my-bucket                                     EU-CENTRAL-1   2023-06-08 06:02:00  \n  5        2   new-storage4                                             EU-CENTRAL-1   2023-02-15 20:15:51  \n  6       10   new-storage3                                             EU-CENTRAL-1   2023-02-15 14:00:37  \n  7        1   zappa-s3-test1                                           EU-CENTRAL-1   2023-04-17 09:27:41  \n  8      189   ns-lab-web                                               EU-WEST-3      2022-12-03 09:15:52 \n```\n\n### Create new S3 Bucket\n```sh\npython -m ns_lab_aws.manager --create -b 'project-8.console'\n```\n\n### Delete S3 Bucket\n```sh\npython -m ns_lab_aws.manager --delete -b 'project-8.console'\n```\n\n### Show S3 Bucket content\n```sh\npython -m ns_lab_aws.manager  --content -b 'backname'  \n```\n\n```sh\n                                                                                   \n                              Files in AWS S3 Bucket                               \n                                                                                   \n   ID    Path   File                  Extension        Size         Created        \n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \n   1            4100020573.pdf        PDF         350.64 KB   2023-06-07 19:34:09  \n   2            Docker.dmg            DMG          590.5 MB   2023-06-07 19:35:26  \n   3            flower.jpeg           JPEG        202.35 KB   2023-06-07 19:39:00  \n   4            my_pdf_document.pdf   PDF         350.64 KB   2023-06-07 19:31:02  \n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "AWS Console Tool",
    "version": "23.6.9.post1349",
    "project_urls": {
        "Changes": "https://github.com/salavatn/Python/commits/main/AWS/README.md",
        "Documentation": "https://github.com/salavatn/Python/blob/main/AWS/README.md",
        "Homepage": "https://github.com/salavatn/Python/tree/main/AWS"
    },
    "split_keywords": [
        "aws",
        "s3 bucket"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "20a28b36d0a8ac5db1b6e9064d156cb8e22b9dca08c8fb31a2eeffd0dbe67f85",
                "md5": "c5f80c7db4372f737c2b83d764704bea",
                "sha256": "db9a9dd2cefec8c54d7fcf36fadba0c8ef5b54c035499b7a37e7f1af64d775c8"
            },
            "downloads": -1,
            "filename": "ns_lab_aws-23.6.9.post1349-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c5f80c7db4372f737c2b83d764704bea",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9907,
            "upload_time": "2023-06-09T10:54:16",
            "upload_time_iso_8601": "2023-06-09T10:54:16.623346Z",
            "url": "https://files.pythonhosted.org/packages/20/a2/8b36d0a8ac5db1b6e9064d156cb8e22b9dca08c8fb31a2eeffd0dbe67f85/ns_lab_aws-23.6.9.post1349-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ce5622c4907515fcc251ae1c4d665685f000a5cca8356f650b105ab53b75998f",
                "md5": "f1e9955afbae9ead6b5525401df12d46",
                "sha256": "72aa7c4bf6dd36639a235209dd9caa3e579933c4fcc0b64df59c72d45d66f361"
            },
            "downloads": -1,
            "filename": "ns_lab_aws-23.6.9.post1349.tar.gz",
            "has_sig": false,
            "md5_digest": "f1e9955afbae9ead6b5525401df12d46",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9113,
            "upload_time": "2023-06-09T10:54:17",
            "upload_time_iso_8601": "2023-06-09T10:54:17.952161Z",
            "url": "https://files.pythonhosted.org/packages/ce/56/22c4907515fcc251ae1c4d665685f000a5cca8356f650b105ab53b75998f/ns_lab_aws-23.6.9.post1349.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-09 10:54:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "salavatn",
    "github_project": "Python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ns-lab-aws"
}
        
Elapsed time: 0.36542s