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.1.3.tar.gz (3.0 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.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple-file-ops-0.1.3.tar.gz
  • Upload date:
  • Size: 3.0 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.10.0

File hashes

Hashes for simple-file-ops-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6afbc39a36035c01bc986816c44cea78c0d116c5b895df081911ab41db0385ad
MD5 600f6da5678fc67f52800f3a778e26fc
BLAKE2b-256 3618e9f6744ee909a30f64c0e575d58bad32c3f277dbadf95df4db48dc282a94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_file_ops-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.10.0

File hashes

Hashes for simple_file_ops-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5e8c8844901a682d56e5d63c28927c251c58ad4310c511836a11829b4efb279b
MD5 9c99b49b62565707f315d85e490cc8c1
BLAKE2b-256 5f7799269f7dd4f5371b739d554aeee84083191249d654770751274ade2812d2

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