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.1.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.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple-file-ops-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 18c97d6da1d3531df637a5ed8f77951b6424c143fa46b8bfcbb1fe8877afa607
MD5 46c047e5d4d058925c5d346688ca026f
BLAKE2b-256 1c554bed5899f0441f5cee6218c449380441487d3447175dc0563c7bcaa81954

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_file_ops-0.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d57c7356ecc835f943427e5f6d6f16434cd541a0252dbe2b8c2669aae845f42
MD5 b5167e682c5ca74614f9a36d81b8de69
BLAKE2b-256 e3a6d761d79a6fe1a724b201af386de16c313ea218084b61c6ee36ed8d1f946a

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