Skip to main content

Creating files with custom file size

Project description

MClipp docs

MClipp is a easy library, where you can create big or small files. You can do it using Memory class.

How does it working?

MClipp creates a file, that has custom file size. It multiplies a unit by custom file size in bytes. As it known, the unit is a simple zero (0).

Create

Using "create" method you can create files width custom file size.

Example:

from mclipp import *

clipper = Memory()
clipper.create('filename', 1024)

It creates a file, that has name "filename" and size 1024 bytes.

Pattern:

from mclipp import *

clipper = Memory()
clipper.create(filename, byte)

... where filename is a filename and byte is a file_size.

Delete

Using delete you can delete large or simple files without recovery.

Example:

from mclipp import *

clipper = Memory()
clipper.delete(r'C:/Users/user/Desktop', 'filename')

Here you can delete file "filename", that is in "C:/Users/user/Desktop". You can successful delete this file if it isn't in use.

Pattern:

from mclipp import *

clipper = Memory()
clipper.delete(path, filename)

Bonus: get unit

To get a unit you must to use property unit.

Example:

from mclipp import *

clipper = Memory()
print(clipper.unit)

In current version the unit is "0".

Project details


Release history Release notifications | RSS feed

This version

1.1

Download files

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

Source Distribution

mclipp-1.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file mclipp-1.1.tar.gz.

File metadata

  • Download URL: mclipp-1.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for mclipp-1.1.tar.gz
Algorithm Hash digest
SHA256 4c930758fee99fa7313e79cfe6593396c89f1c4241a82a510044db94c44abd82
MD5 322d4e181d22a3a7dfa59acefa094ac6
BLAKE2b-256 ba8376298b282d2f6fc0b7dc91bbf6e30ec261045d1f0ebde977975ae7ef5262

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