Metadata-Version: 2.1
Name: LocalDataStorage
Version: 0.1
Summary: This Python package creates a file locally in the user's device more easily.
Author: Samar Panchal
Author-email: 123samarpanchal@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# LocalDataStoragePython-0.0.1
***
This Python package creates a file locally in the user's device more easily.

## Requirments for All OS (Operating System)
***
* Python should be Installed
*  PIP should also be Installed

## What is PIP?
***
Pip is a package manager for Python that allows you to install additional libraries and packages that are not part of the standard Python library, such as the ones found in the Python Package Index.

## Examples
***
Here is an example of this Python module:
``` python
import LocalDataStorage as m

obj = m.LocalDataStore("py")
obj.save_data("example")

```
Output:
```
example.py
```
As shown in the above code, `py` is used as **filetype**, and `example` is used as **filename**.

## Documentation
***
there are four methods in this package:

1) **save_data:** It creates a new file but cannot upload the data inside that file and throws an error when the file already exists. There is a single attribute for this method `filename`.
   
2) **load_data:** It opens a pre-made file; if the file doesn't exist, it throws an error and returns the data written in that file if everything is fine. There is a single attribute for this method `filename`.

3) **update_data:** It opens a pre-made file and updates the text in that file and if the file doesn't exist, it throws an error. There are two attributes for this method: `filename` and `value`.
   
4) **delete_data:** It opens a pre-made file and deletes it and if the file doesn't exist, it throws an error. There is a single attribute for this method `filename`.

## More Examples
***
There is another example in front of you that shows the workings of the whole package:
``` python
import LocalDataStorage as m

obj = m.LocalDataStore("txt")

value = input("Enter something:")
obj.update_data("example2", value)
print("You Wrote:", obj.load_data("example2"))

```
Output:

```
Enter something:hello world
You Wrote: hello world
```
As we can see the `update_data()` method can also be used to create a file if it doesn't exist and give values.

## Be a Member
***
You can become a member by reporting bugs or faults you find in this package, we will do our best to solve that bug and make this package comfortable for you.

## License
***
there is **MIT LICENCE** for this package
