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:
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:
-
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. -
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. -
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:
filenameandvalue. -
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:
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
Metadata
Release files for LocalDataStorage 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| LocalDataStorage-0.1.tar.gz | 3.2 kB | Without provenance | Details for LocalDataStorage-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| LocalDataStorage-0.1-py3-none-any.whl | Python 3 | none | any | Details for LocalDataStorage-0.1-py3-none-any.whl |
Total release size: 6.8 kB
Release files / LocalDataStorage-0.1.tar.gz
| Download URL | LocalDataStorage-0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5a0b0c2b7fda0284c4aae822aeb64c6855a4a094357c189c6ce348c00b1a10c
|
|
BLAKE2b-256 checksum How to use checksums |
7c2d7755518034532fdcc30dea2ac74d86e0e4ea05ef1373b7dd25a6ce983bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / LocalDataStorage-0.1-py3-none-any.whl
| Download URL | LocalDataStorage-0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04563b1da2efe51ef28f4a7f4d8b6965028c392ac29b20f15cf99b34a1fc1503
|
|
BLAKE2b-256 checksum How to use checksums |
1dc6c91294d984f5ef945a4705f281e57243ebb637a164322b73d03af65d97d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for LocalDataStorage 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.