ABOUT
UNSIO (Universal Nbody Snapshot Input Output) is an API which perform input/output operations in a generic way, and on different kind of nbody files format (nemo, Gadget binaries 1 and 2, Gadget hdf5, Ramses). By using this API, a user could write only one analysis program which will work on all known files format supported by UNSIO. It's not necessary anymore to know how is implemented a file format, UNSIO will do transparently and automatically all the hard work for you ! With UNSIO, you will spend less time to develop your analysis program. UNSIO comes with an integrated sqlite3 database which can be used to retrieve automatically all your data among terabytes of hard disks.
Features
UNSIO can be used from different languages (C,C++,Fortran and Python)
Supported files format :
- NEMO (read and write)
- GADGET 1 (read)
- GADGET 2 (read an write)
- GADGET 3/hdf5 (read and write)
- RAMSES (read)
- List of files stored in a file
- Simulations stored in SQLITE3 database
Installing python wrapper from PYPI
pip install unsio -U
Installing the library for C/C++/Fortran
- requirements :
- hdf5 devel
- sqlite3 devel
- Build
mkdir build cd build cmake .. make -j 4 && make install
To get some python docstring help
python -m pydoc unsio.input
python -m pydoc unsio.output
Python example code
- In the example below, we load a RAMSES simulation and we save it in GADGET3 file format
import unsio.input as uns_in # unsio reading module
myfile="/home/jcl/output_00004" # input RAMSES simulation
# we instantiate a CUNS_IN object
my_in=uns_in.CUNS_IN(myfile,"gas,stars") # We select components GAS and STARS
#
# Reading
#
if my_in.nextFrame(): # load snapshot
# read stars positions
status,poss=my_in.getData("stars","pos")
# read gas positions
status,posg=my_in.getData("gas","pos")
# read gas densities
status,rho=my_in.getData("gas","rho")
# read time simulation
status,timex=my_in.getData("time")
#
# Writing
#
import unsio.output as uns_out # unsio writing module
myoutfile="snapshot.g3" # output file name
# we instantiate a CUNS_OUT object
my_out=uns_out.CUNS_OUT(myoutfile,"gadget3") # select gadget3 output format
# prepare data to be saved
# set time
status=my_out.setData(timex,"time")
# set stars positions
status=my_out.setData(poss,"stars","pos")
# set gas positions
status=my_out.setData(posg,"gas","pos")
# set gas densities
status=my_out.setData(rho,"gas","rho")
# write on file system
my_out.save()
# close
my_out.close()
License
UNSIO is open source and released under the terms of the CeCILL2 Licence
Webpage
Visit :
- UNSIO documentation
- Unsio source code hosted on Gitlab repository
Metadata
Release files for unsio 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| unsio-1.0.2.tar.gz | 385.0 kB | Without provenance | Details |
Built distributions (wheels)
Total release size: 63.7 MB
Release files / unsio-1.0.2.tar.gz
| Download URL | unsio-1.0.2.tar.gz |
|---|---|
| Size | 385.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2383eb39a83ace745acf88a805bda478056b54bd4515cbfc931a01b163bb201f
|
|
BLAKE2b-256 checksum How to use checksums |
6fb8e89563375835f0a59cef900bd7acc9d718ecc9eeb3cd8e2da82de4a42553
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | unsio-1.0.2-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
447b04e9a704a5aa61a6c641ebda800148650b548bc0408b55d7ec04ad75c178
|
|
BLAKE2b-256 checksum How to use checksums |
676e4f57faefedce5f440744dd568241fcf65ea0f0652e5af411c94f0bbcc8f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | unsio-1.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4ea64a4fa4936537e74d3e85045d4674dd7097567484d705dc59abbfcbfd4859
|
|
BLAKE2b-256 checksum How to use checksums |
002ca825c8bff3890f77e7df67d0e3ee95908dd4e8a1acc978851bffd376e27f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | unsio-1.0.2-cp313-cp313-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.13 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4f34d66f78b51b8a223c14a4317ef99b1d35a3450a6917ad2d7e05b34fe77f2c
|
|
BLAKE2b-256 checksum How to use checksums |
0fbb2d421f808051efc645c62af71f688e18d76bc9a58efb66bad79dd38686ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / unsio-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | unsio-1.0.2-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed58ab2fd5bbd14a3da3281a49a3590becd68b566ffbc8f7b027e8ad88dde29f
|
|
BLAKE2b-256 checksum How to use checksums |
74d64a3b8cf82eb9530022918e250c3f97586e9db44c097469ca3d980e8b7df5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | unsio-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0a42a01f47240ce9ff0b1de06ff6a39ce33105bef8bc279180d4935c58f3b691
|
|
BLAKE2b-256 checksum How to use checksums |
ae2768db3ccf5356503e0ff560ad87a3dbb1325123e234e2a7aa09a61466e565
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp312-cp312-macosx_15_0_arm64.whl
| Download URL | unsio-1.0.2-cp312-cp312-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
405c533b24fb21fe276bdabdd97afaf6bdf3d72d1d36bc5985056ecc34621a63
|
|
BLAKE2b-256 checksum How to use checksums |
541cc379a7165dc44d83b0d3eb2a0db88611038ebd7f762f1c9cc7bb505f79fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / unsio-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | unsio-1.0.2-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
3ecb6840b244964244139f3e742ce441eb1a60a4d7f0923d66f956ae95024fbd
|
|
BLAKE2b-256 checksum How to use checksums |
f1017b88ddebccbea04f12bab8daaa98f9a3ebb879dd270711a8d4773adcd94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / unsio-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | unsio-1.0.2-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9772c16e5c41ab5b9d9b66a4a6fc098c62ee4a01c5b56e3e866603b7a20bc2cc
|
|
BLAKE2b-256 checksum How to use checksums |
af3dd102d6385062854f2f3d75aa0197b97603db7a6dc5e8b37e05fb30dfbeef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | unsio-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c1b4b03f3468eaa562d1b461ef28d59a71ab69f7b4eb836d0da55e8925157b5d
|
|
BLAKE2b-256 checksum How to use checksums |
b56e4c86d83de0105901d05aed3a70f366864babc3bd7ad825f5177c3950d01c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | unsio-1.0.2-cp311-cp311-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
af4152e95ed70742f5cf55a5a81581e30e2e7a31b74f023cbf73f5cac91959b6
|
|
BLAKE2b-256 checksum How to use checksums |
c0d4939bd63b94f25f04979de0cc08f89c340bcb00acc066d49763f23be91764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / unsio-1.0.2-cp311-cp311-macosx_10_13_x86_64.whl
| Download URL | unsio-1.0.2-cp311-cp311-macosx_10_13_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.11 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
568dc5c35d0658b901ff6f8e227666884e92d8c5d9a11f9de0b3623a2c343bbf
|
|
BLAKE2b-256 checksum How to use checksums |
95084f71399497a369b96252b9b1d5eff6a93f3e082539929b49f1dc91d92a80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / unsio-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | unsio-1.0.2-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b7f32cdbe9e85b5abc331e512ea1cbf4ec5a73460c4ad9217009309bcc72a17e
|
|
BLAKE2b-256 checksum How to use checksums |
dceccee8b0749b6caa5098d00075333536e823ce78768aeae7fba00c2222034b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | unsio-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
40fc538ebf39c96903ef7dbe43fbcac0cc205046e6f9b10767752e60194a3e6c
|
|
BLAKE2b-256 checksum How to use checksums |
354e17c8044d141a5259bd166cf09bf5bccbbfe118ed3a6c9a22078547e23faa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp310-cp310-macosx_10_13_x86_64.whl
| Download URL | unsio-1.0.2-cp310-cp310-macosx_10_13_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.10 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
ee79a63e7f6992685293f294f09be042a5eee58bcb3272553bf5de101d8b2ba8
|
|
BLAKE2b-256 checksum How to use checksums |
d16b57902e44e3ee01b8afaa4237fc10e93c9fc4a88c8fa1a7fb9fc408f8a6b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / unsio-1.0.2-cp39-cp39-manylinux_2_28_x86_64.whl
| Download URL | unsio-1.0.2-cp39-cp39-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b0e28ef85a410fc3a0a2539792f2bfda6a1a463d0e2c713443b87c0282ff022c
|
|
BLAKE2b-256 checksum How to use checksums |
fbf6b6c9e8148b8895c9bdd1ca92c307dca669e7e75489824e32ead88274abed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | unsio-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
53d46e2d9693478b03b6515fb9c9c0bf49c160c03ede711b01f41470de67aacf
|
|
BLAKE2b-256 checksum How to use checksums |
2cfa587b0844654ad4caf81a1eb4a77103270270de13f1c4b7e1e32c89043006
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp39-cp39-macosx_15_0_arm64.whl
| Download URL | unsio-1.0.2-cp39-cp39-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ce5f9532922fe7a3c4a72bdb318e40ecd21dc522717a289e09567ea3b5b4c551
|
|
BLAKE2b-256 checksum How to use checksums |
e1ea5207d3cc08f0a8496a093c10bb221dc33d9d4c0e4bf946dbe04e1b30837f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / unsio-1.0.2-cp39-cp39-macosx_10_13_x86_64.whl
| Download URL | unsio-1.0.2-cp39-cp39-macosx_10_13_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.9 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
240b512e810b3ef93fed09f82a525b3588d4b92e82b76456058d60e2e6d16123
|
|
BLAKE2b-256 checksum How to use checksums |
7690e0b50afc370f55c6b3d81ae50eb372e55c283dc9c9baf144db5f59aa0f4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Release files / unsio-1.0.2-cp38-cp38-manylinux_2_28_x86_64.whl
| Download URL | unsio-1.0.2-cp38-cp38-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fc86a7a57556235191cbf9e8b08e4d5133f071260d0eb8ca706b60cc3992c6b8
|
|
BLAKE2b-256 checksum How to use checksums |
0d0917d7ee7a296de057fda02071c9d2de1c130190c40df01f0e2a6733c49570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | unsio-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
69bc2d1d88835cbfa7d089ef0b0cc06667d49a22a7dec846fde6eea91ea22ec7
|
|
BLAKE2b-256 checksum How to use checksums |
7e94b946bcc4586a973a984dfa9b84632b443f99bc2a5aea551473dbb6c74235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / unsio-1.0.2-cp38-cp38-macosx_10_13_x86_64.whl
| Download URL | unsio-1.0.2-cp38-cp38-macosx_10_13_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.8 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
86f6ec4699d58e34e855e352f42340fcf558c6f84d98867b9e992e400340b26a
|
|
BLAKE2b-256 checksum How to use checksums |
ccac6d5d08be68786695f615ffc571130cdbc0cb830c2a8d7c51de1e99f406a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.13
|
Security for unsio 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.