Skip to main content

collection of personal information

Project description

PersonalInfoSaver

A simple Python utility to save and retrieve personal information (name, age, email) to/from a local JSON file.

📁 File: personal_info.json

This file is automatically created in the same directory to store the data in JSON format.

✅ Features

  • Save user information: name, age, and email
  • Retrieve saved information by name
  • Automatically loads and updates the data file

📦 Requirements

No external libraries required. Uses Python's built-in json and os modules.

🛠️ Usage

pip install personalinfo

```python
from personalinfo import PersonalInfoSaver

# Create the saver object
saver = PersonalInfoSaver()

# Save user information
saver.save_info("prabaharan", 30, "prabaharan@example.com")

# Retrieve user information
info = saver.get_info("prabaharan")
print(info)  # Output: {'age': 30, 'email': 'prabaharan@example.com'}

# Example usage
saver = PersonalInfoSaver()
saver.save_info("John Doe", 28, "s2EwX@example.com")
print(saver.get_info("John Doe"))  # This will print the saved information for "John Doe"

# You can also test with other names
saver.save_info("Jane Smith", 32, "nYDdD@example.com")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

personalinfo-0.0.3.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

personalinfo-0.0.3-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file personalinfo-0.0.3.tar.gz.

File metadata

  • Download URL: personalinfo-0.0.3.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for personalinfo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 32e0f21c6a9261d30a69d3638462d3dd417dff365131c479e06c35011930d067
MD5 3aa5184defcd5c4e0341faf9b5bfd10d
BLAKE2b-256 c1012e54da7e160eee93951b95691224097fcb5dad3520dae052b4f6431e6978

See more details on using hashes here.

File details

Details for the file personalinfo-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: personalinfo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for personalinfo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6cb6bb9b809298b6efeed23a539c60d153889163d637605eb24669ccfb30d766
MD5 0549d469b8114d5e9c44a16cf57e0475
BLAKE2b-256 d8faebdb516cef101e603ef17e2b670ce291ba360c872cbaef4b688b91bf5253

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page