- [Summary](#summary)
- [Install and Run](#install-and-run)
- [Nimbus Command Line Interface (NCLI)](#nimbus-command-line-interface-ncli)
- [CLI Commands](#cli-commands)
- [NCLI Commands](#ncli-commands)
- [Data Encryption and Security Information](#data-encryption-and-security-information)
- [Encryption](#encryption)
- [Configuration File](#configuration-file)
- [Documentation](#documentation)
- [Module Usage Example](#module-usage-example)
- [Functions](#functions)
- [Feedback](#feedback)
---
# Summary
Nimbus is aimed to be a low cost, secure, and customizable cloud storage system. Currently, we are giving free access to 15 GB of cloud storage for testing purposes.
---
# Install and Run
1. You can install Nimbus with pip:
```
pip install nimbus-cloud
```
2. Create an account:
```
nimbus -su
```
You will be prompted to provide an email, password, and a file path for your encryption key (e.g., /home/nimbus/key.txt). The information you provide will be stored in your [configuration file](#configuration-file) and used to create your account.
3. Run the Nimbus command line interface (NCLI):
```
nimbus
```
---
# Nimbus Command Line Interface (NCLI)
To access the NCLI, simply run `nimbus` in your command line. The NCLI is designed to function like a standard CLI.
### CLI Commands
| Command | Description |
| ------------- | -------------------------- |
| `nimbus` | Launch the NCLI. |
| `nimbus -si` | Sign in. |
| `nimbus -su` | Sign up. |
| `nimbus -sub` | Subscribe to a plan. |
| `nimbus -man` | Manage your subscriptions. |
| `nimbus -pw` | Change your password. |
| `nimbus -h` | Show a help message. |
### NCLI Commands
| Command | Description |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `b` | Change to the previous directory. |
| `cd [directory]` | Change to a different directory. |
| `dl [source path] [destination path]` | Download a file or directory. The source is the path on the cloud and the destination is the path on the local filesystem once its downloaded. |
| `ls [-l] [directory]` | List files in a directory. <ul><li>`-l` Use a long listing format. (Additionally shows file size and time of upload.) </li></ul> |
| `mv [old path] [new path]` | Move or rename a file. The source is the path on the cloud of the file you want to move and the destination is the modified path. |
| `pwd` | Show the current directory. |
| `q` | Quit the interface. |
| `quota [-l]` | Show how much total and daily storage is left. <ul><li>`-l` Use a long format. (Shows storage in bytes.) </li></ul> |
| `rm [-f] [path]` | Move a file or directory into the trash folder. <ul><li>`-f` Permanently delete a file or directory. </li></ul> |
| `ul [source path] [destination path]` | Upload a file or directory. The source is the path on the local filesystem and the destination is the path on the cloud once its uploaded. |
---
# Data Encryption and Security Information
### Encryption
Files uploaded to the cloud are secured with 256 bit AES encryption. Only you have the ability to decrypt your files. It's crucial to note that in the event of an encryption key loss, accessing your files will be impossible. Therefore, it's highly advisable to create a backup of your encryption key to safeguard your access. Additionally, all communication between the user and the server is also encryted, ensuring end-to-end security for all interactions with the cloud.
### Configuration File
Your username, password, and encryption key file path are stored securely in the `config.yaml` file, located in the `nimbus` folder in your [site-packages](https://www.geeksforgeeks.org/get-location-of-python-site-packages-directory/) directory.
---
# Documentation
### Module Usage Example
Here's a basic example of how you can use this module:
```python
import nimbus
# Automatically sets the required parameters (assuming they have been set before)
nimbus.init()
# Uploads a file called 'image.png' from the local filesystem
nimbus.upload('image.png')
print('Upload Complete!')
# Renames 'image.png' to 'logo.png'
nimbus.move('image.png', 'logo.png')
# Lists all files
files = nimbus.list_all()
print(files)
# Downloads 'logo.png' from the cloud to the local filesystem as 'logo_downloaded.png'
nimbus.download('logo.png', 'logo_downloaded.png')
# Permanently deletes all files
for file in files:
nimbus.remove(file, False)
```
### Functions
#### `nimbus.init(user=None, passwd=None, key_path=None)` <!-- omit from toc -->
This function initializes the module and sets all the required variables. **It is essential to call this function before using any other function in this module.** If you don't provide a parameter, the function will automatically use the values from the configuration file. Any parameter you set will be saved in the configuration file for future use.
* `user` (str): Your Nimbus account username.
* `passwd` (str): Your Nimbus account password.
* `key_path` (str): File path of your encryption key.
#### `nimbus.list(path='', stats=False)` <!-- omit from toc -->
This function returns a list of your files and folders in the specified `path` on the cloud. If `stats=True`, it will also include additional file details such as the date and time of upload, as well as the file size. If no `path` is provided, it will list the files and folders in your current directory.
#### `nimbus.list_all(stats=False)` <!-- omit from toc -->
This function returns a list of absolute paths for all your files stored on the cloud. If `stats=True`, it will also include additional file details such as the date and time of upload, as well as the file size.
#### `nimbus.current_dir()` <!-- omit from toc -->
This function returns the path of your current directory on the cloud.
#### `nimbus.change_dir(path)` <!-- omit from toc -->
This function changes your current directory on the cloud to the specified `path` (a string representing the new directory location).
#### `nimbus.back()` <!-- omit from toc -->
This function changes your current directory on the cloud to the parent directory.
#### `nimbus.upload(src, dst=None, show_prog=True)` <!-- omit from toc -->
This function allows you to upload a file or directory from your local filesystem to your cloud storage.
* `src` (str): Specifies the source path of the fle or directory on your local filesystem that you want to upload.
* `dst` (str): Specifies the destination path where the file or directory will be uploaded to on your cloud storage. If this parameter is not set, the file or directory will be uploaded into your current directory on the cloud.
* `show_prog` (bool): If set to `True`, a progress bar indicating the upload progress will be displayed during the upload process.
#### `nimbus.download(src, dst=None, show_prog=True)` <!-- omit from toc -->
This function allows you to download a file or directory from your cloud storage to your local filesystem.
* `src` (str): Specifies the source path of the fle or directory on the cloud that you want to download.
* `dst` (str): Specifies the destination path where the file or directory will be downloaded to on your local filesystem. If this parameter is not set, the file or directory will be downloaded into your current directory.
* `show_prog` (bool): If set to `True`, a progress bar indicating the download progress will be displayed during the download process.
#### `nimbus.move(src, dst)` <!-- omit from toc -->
This function moves a file or directory from a source location (`src`) to a destination location (`dst`). Both parameters are required to be set.
#### `nimbus.remove(path, trash=True)` <!-- omit from toc -->
This function allows you to delete a file or directory from the cloud.
* `path` (str): Specifies the path of the file or directory you wish to remove.
* `trash` (bool): Determines whether the file or directory will be moved to the trash (`True`) or permanently deleted (`False`). By default, the item will be moved to the trash.
#### `nimbus.quota()` <!-- omit from toc -->
This function provides information about your storage usage. It returns a tuple with three integers:
1. The total amount of storage you have used so far in bytes.
2. The maximum amount of storage you have in bytes.
3. The total amount of storage you have used so far in the day.
---
# Feedback
If you have any feedback, please [email](mailto:sakshine108@gmail.com) us.
Raw data
{
"_id": null,
"home_page": "https://github.com/sakshine108/nimbus/",
"name": "nimbus-cloud",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "sakshine108",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/ce/c2/4023ef048e5764eb623356de170d6e473051a49538b5e300eba2a481be5c/nimbus-cloud-0.0.25.tar.gz",
"platform": null,
"description": "- [Summary](#summary)\n- [Install and Run](#install-and-run)\n- [Nimbus Command Line Interface (NCLI)](#nimbus-command-line-interface-ncli)\n - [CLI Commands](#cli-commands)\n - [NCLI Commands](#ncli-commands)\n- [Data Encryption and Security Information](#data-encryption-and-security-information)\n - [Encryption](#encryption)\n - [Configuration File](#configuration-file)\n- [Documentation](#documentation)\n - [Module Usage Example](#module-usage-example)\n - [Functions](#functions)\n- [Feedback](#feedback)\n\n---\n\n# Summary\n\nNimbus is aimed to be a low cost, secure, and customizable cloud storage system. Currently, we are giving free access to 15 GB of cloud storage for testing purposes.\n\n---\n\n# Install and Run\n\n1. You can install Nimbus with pip:\n```\npip install nimbus-cloud\n```\n\n2. Create an account:\n```\nnimbus -su\n```\n\nYou will be prompted to provide an email, password, and a file path for your encryption key (e.g., /home/nimbus/key.txt). The information you provide will be stored in your [configuration file](#configuration-file) and used to create your account.\n\n3. Run the Nimbus command line interface (NCLI):\n```\nnimbus\n```\n\n---\n\n# Nimbus Command Line Interface (NCLI)\n\nTo access the NCLI, simply run `nimbus` in your command line. The NCLI is designed to function like a standard CLI.\n\n### CLI Commands\n\n| Command | Description |\n| ------------- | -------------------------- |\n| `nimbus` | Launch the NCLI. |\n| `nimbus -si` | Sign in. |\n| `nimbus -su` | Sign up. |\n| `nimbus -sub` | Subscribe to a plan. |\n| `nimbus -man` | Manage your subscriptions. |\n| `nimbus -pw` | Change your password. |\n| `nimbus -h` | Show a help message. |\n\n### NCLI Commands\n\n| Command | Description |\n| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |\n| `b` | Change to the previous directory. |\n| `cd [directory]` | Change to a different directory. |\n| `dl [source path] [destination path]` | Download a file or directory. The source is the path on the cloud and the destination is the path on the local filesystem once its downloaded. |\n| `ls [-l] [directory]` | List files in a directory. <ul><li>`-l` Use a long listing format. (Additionally shows file size and time of upload.) </li></ul> |\n| `mv [old path] [new path]` | Move or rename a file. The source is the path on the cloud of the file you want to move and the destination is the modified path. |\n| `pwd` | Show the current directory. |\n| `q` | Quit the interface. |\n| `quota [-l]` | Show how much total and daily storage is left. <ul><li>`-l` Use a long format. (Shows storage in bytes.) </li></ul> |\n| `rm [-f] [path]` | Move a file or directory into the trash folder. <ul><li>`-f` Permanently delete a file or directory. </li></ul> |\n| `ul [source path] [destination path]` | Upload a file or directory. The source is the path on the local filesystem and the destination is the path on the cloud once its uploaded. |\n\n---\n\n# Data Encryption and Security Information\n\n### Encryption\n\nFiles uploaded to the cloud are secured with 256 bit AES encryption. Only you have the ability to decrypt your files. It's crucial to note that in the event of an encryption key loss, accessing your files will be impossible. Therefore, it's highly advisable to create a backup of your encryption key to safeguard your access. Additionally, all communication between the user and the server is also encryted, ensuring end-to-end security for all interactions with the cloud.\n\n### Configuration File\n\nYour username, password, and encryption key file path are stored securely in the `config.yaml` file, located in the `nimbus` folder in your [site-packages](https://www.geeksforgeeks.org/get-location-of-python-site-packages-directory/) directory.\n\n---\n\n# Documentation\n\n### Module Usage Example\n\nHere's a basic example of how you can use this module:\n\n```python\nimport nimbus\n\n# Automatically sets the required parameters (assuming they have been set before)\nnimbus.init()\n\n# Uploads a file called 'image.png' from the local filesystem\nnimbus.upload('image.png')\nprint('Upload Complete!')\n\n# Renames 'image.png' to 'logo.png'\nnimbus.move('image.png', 'logo.png')\n\n# Lists all files\nfiles = nimbus.list_all()\nprint(files)\n\n# Downloads 'logo.png' from the cloud to the local filesystem as 'logo_downloaded.png'\nnimbus.download('logo.png', 'logo_downloaded.png')\n\n# Permanently deletes all files\nfor file in files:\n nimbus.remove(file, False)\n```\n\n### Functions\n\n#### `nimbus.init(user=None, passwd=None, key_path=None)` <!-- omit from toc -->\nThis function initializes the module and sets all the required variables. **It is essential to call this function before using any other function in this module.** If you don't provide a parameter, the function will automatically use the values from the configuration file. Any parameter you set will be saved in the configuration file for future use.\n\n* `user` (str): Your Nimbus account username.\n* `passwd` (str): Your Nimbus account password.\n* `key_path` (str): File path of your encryption key.\n\n#### `nimbus.list(path='', stats=False)` <!-- omit from toc -->\nThis function returns a list of your files and folders in the specified `path` on the cloud. If `stats=True`, it will also include additional file details such as the date and time of upload, as well as the file size. If no `path` is provided, it will list the files and folders in your current directory.\n\n#### `nimbus.list_all(stats=False)` <!-- omit from toc -->\nThis function returns a list of absolute paths for all your files stored on the cloud. If `stats=True`, it will also include additional file details such as the date and time of upload, as well as the file size.\n\n#### `nimbus.current_dir()` <!-- omit from toc -->\nThis function returns the path of your current directory on the cloud.\n\n#### `nimbus.change_dir(path)` <!-- omit from toc -->\nThis function changes your current directory on the cloud to the specified `path` (a string representing the new directory location).\n\n#### `nimbus.back()` <!-- omit from toc -->\nThis function changes your current directory on the cloud to the parent directory.\n\n#### `nimbus.upload(src, dst=None, show_prog=True)` <!-- omit from toc -->\nThis function allows you to upload a file or directory from your local filesystem to your cloud storage.\n\n* `src` (str): Specifies the source path of the fle or directory on your local filesystem that you want to upload.\n* `dst` (str): Specifies the destination path where the file or directory will be uploaded to on your cloud storage. If this parameter is not set, the file or directory will be uploaded into your current directory on the cloud.\n* `show_prog` (bool): If set to `True`, a progress bar indicating the upload progress will be displayed during the upload process.\n\n#### `nimbus.download(src, dst=None, show_prog=True)` <!-- omit from toc -->\nThis function allows you to download a file or directory from your cloud storage to your local filesystem.\n\n* `src` (str): Specifies the source path of the fle or directory on the cloud that you want to download.\n* `dst` (str): Specifies the destination path where the file or directory will be downloaded to on your local filesystem. If this parameter is not set, the file or directory will be downloaded into your current directory.\n* `show_prog` (bool): If set to `True`, a progress bar indicating the download progress will be displayed during the download process.\n\n#### `nimbus.move(src, dst)` <!-- omit from toc -->\nThis function moves a file or directory from a source location (`src`) to a destination location (`dst`). Both parameters are required to be set.\n\n#### `nimbus.remove(path, trash=True)` <!-- omit from toc -->\nThis function allows you to delete a file or directory from the cloud.\n\n* `path` (str): Specifies the path of the file or directory you wish to remove.\n* `trash` (bool): Determines whether the file or directory will be moved to the trash (`True`) or permanently deleted (`False`). By default, the item will be moved to the trash.\n\n#### `nimbus.quota()` <!-- omit from toc -->\nThis function provides information about your storage usage. It returns a tuple with three integers:\n\n1. The total amount of storage you have used so far in bytes.\n2. The maximum amount of storage you have in bytes.\n3. The total amount of storage you have used so far in the day.\n\n---\n\n# Feedback\n\nIf you have any feedback, please [email](mailto:sakshine108@gmail.com) us.\n",
"bugtrack_url": null,
"license": "",
"summary": "A secure and customizable cloud storage system.",
"version": "0.0.25",
"project_urls": {
"Homepage": "https://github.com/sakshine108/nimbus/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eabfaae18a78fb9be3b23c99077416edc28e04c3ef053be06ee4f9899b4f7acf",
"md5": "3588e189d1a28072057d04f129e2cd7c",
"sha256": "7dc6c16b8c57bea5393afd8bfbe8e70104cd6e57b1b51b31dc9b74c02151a23b"
},
"downloads": -1,
"filename": "nimbus_cloud-0.0.25-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3588e189d1a28072057d04f129e2cd7c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11975,
"upload_time": "2023-11-14T00:21:48",
"upload_time_iso_8601": "2023-11-14T00:21:48.960836Z",
"url": "https://files.pythonhosted.org/packages/ea/bf/aae18a78fb9be3b23c99077416edc28e04c3ef053be06ee4f9899b4f7acf/nimbus_cloud-0.0.25-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cec24023ef048e5764eb623356de170d6e473051a49538b5e300eba2a481be5c",
"md5": "fef189c32e48309c9ae71a057841634f",
"sha256": "049bd8c5d21103f6068b29f2b4d9e31304a9a1b1bfc5084e51290a96b0ffb63a"
},
"downloads": -1,
"filename": "nimbus-cloud-0.0.25.tar.gz",
"has_sig": false,
"md5_digest": "fef189c32e48309c9ae71a057841634f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13671,
"upload_time": "2023-11-14T00:21:50",
"upload_time_iso_8601": "2023-11-14T00:21:50.243461Z",
"url": "https://files.pythonhosted.org/packages/ce/c2/4023ef048e5764eb623356de170d6e473051a49538b5e300eba2a481be5c/nimbus-cloud-0.0.25.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-14 00:21:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sakshine108",
"github_project": "nimbus",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "cryptography",
"specs": [
[
"==",
"41.0.5"
]
]
},
{
"name": "humanize",
"specs": [
[
"==",
"4.8.0"
]
]
},
{
"name": "pathvalidate",
"specs": [
[
"==",
"3.2.0"
]
]
},
{
"name": "pwinput",
"specs": [
[
"==",
"1.0.3"
]
]
},
{
"name": "PyYAML",
"specs": [
[
"==",
"6.0.1"
]
]
},
{
"name": "rsa",
"specs": [
[
"==",
"4.9"
]
]
},
{
"name": "setuptools",
"specs": [
[
"==",
"66.1.1"
]
]
},
{
"name": "tqdm",
"specs": [
[
"==",
"4.66.1"
]
]
}
],
"lcname": "nimbus-cloud"
}