Skip to main content

Do simple operations for files easier

Project description

Super simple file operations

Are you tired of doing this each time to just modify a part of a json file?

with open(filepath, 'r') as file:
    fd = json.load(file)

fd[key] = 'new value'

with open(filepath, 'w') as file:
    json.dump(fd, file)

Don't worry! Now you can do it just like this! -

fd = fileops.read_json(filepath)
fd[key] = 'new value'
fileops.write_json(filepath, fd)

No hassle of context managers, or saving files, just do things simpler!

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

simple-file-ops-0.0.4.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

simple_file_ops-0.0.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file simple-file-ops-0.0.4.tar.gz.

File metadata

  • Download URL: simple-file-ops-0.0.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for simple-file-ops-0.0.4.tar.gz
Algorithm Hash digest
SHA256 929b8ca435cc2285dc49d3888f143f238183ec1cd1d08e8eff1f3440ca10e081
MD5 9107b6c3568781473be90507ff813bc4
BLAKE2b-256 45fb247af9bde5b60f3216e5b3967e5f0577a7e4ff40b7a252f4fdc3f4a9866c

See more details on using hashes here.

File details

Details for the file simple_file_ops-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: simple_file_ops-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for simple_file_ops-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe91493ee18b34f2bf10c5e44451a9307803820063f0bdb089e8880b41d9b2d
MD5 dcf8e2649f488bfb239d48acd9cdd2be
BLAKE2b-256 ce21359affbfbb6f1ebdeb994212e197378a6495c72cbf8f4a0e9610cb86a1a1

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