Jupyter magic for measuring I/O operations per second
Project description
iops-profiler
A Jupyter IPython magic extension for measuring I/O operations per second (IOPS) in your code.
Installation
You can install iops-profiler directly from PyPI (once published):
pip install iops-profiler
Or install from source:
git clone https://github.com/lincc-frameworks/iops-profiler.git
cd iops-profiler
pip install -e .
Usage
Load the extension in your Jupyter notebook:
%load_ext iops_profiler
Then use the %%iops magic to profile I/O operations in a cell:
%%iops
# Your code here
with open('test.txt', 'w') as f:
f.write('Hello World' * 1000)
The extension will display a table showing:
- Execution time
- Read/write operation counts
- Bytes read/written
- IOPS (operations per second)
- Throughput (bytes per second)
Platform Support
- Linux/Windows: Uses
psutilfor per-process I/O tracking - macOS: Uses
fs_usagewith privilege elevation (requires password prompt)
Requirements
- Python 3.8+
- IPython/Jupyter
- psutil
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iops_profiler-0.1.0.tar.gz.
File metadata
- Download URL: iops_profiler-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc1b7da8a9eeab0c2c03f0cb3f676b769963eab144f5f91b69353f34940af18b
|
|
| MD5 |
e0dea5561958c969d2f117403b74eb7b
|
|
| BLAKE2b-256 |
1e7f3b2607f97f00a5af40ea1f88a4e058b45b315859ad14f0cf03f7ed47c770
|
Provenance
The following attestation bundles were made for iops_profiler-0.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on lincc-frameworks/iops-profiler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iops_profiler-0.1.0.tar.gz -
Subject digest:
dc1b7da8a9eeab0c2c03f0cb3f676b769963eab144f5f91b69353f34940af18b - Sigstore transparency entry: 668927188
- Sigstore integration time:
-
Permalink:
lincc-frameworks/iops-profiler@fdbe61d2b6b7231f9a22f0156c36d9b7bd3e7837 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lincc-frameworks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fdbe61d2b6b7231f9a22f0156c36d9b7bd3e7837 -
Trigger Event:
release
-
Statement type:
File details
Details for the file iops_profiler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iops_profiler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddf636bbad108f4f9d90d37d2447e558f0361e3c588eba3342372dcfe9151dd6
|
|
| MD5 |
e60c7a1088397f3f4096a674bfe8bb2e
|
|
| BLAKE2b-256 |
8723cd443d87b1e87787e068a152f6a3f6170f486f0c1ba850fba7576dc258e9
|
Provenance
The following attestation bundles were made for iops_profiler-0.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on lincc-frameworks/iops-profiler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iops_profiler-0.1.0-py3-none-any.whl -
Subject digest:
ddf636bbad108f4f9d90d37d2447e558f0361e3c588eba3342372dcfe9151dd6 - Sigstore transparency entry: 668927202
- Sigstore integration time:
-
Permalink:
lincc-frameworks/iops-profiler@fdbe61d2b6b7231f9a22f0156c36d9b7bd3e7837 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/lincc-frameworks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fdbe61d2b6b7231f9a22f0156c36d9b7bd3e7837 -
Trigger Event:
release
-
Statement type: