bin2fasta-0.0.2


توضیحات

Store any file as a fasta file
ویژگی مقدار
سیستم عامل -
نام فایل bin2fasta-0.0.2
نام bin2fasta
نسخه کتابخانه 0.0.2
نگهدارنده ['kpj']
ایمیل نگهدارنده ['kpjkpjkpjkpjkpjkpj@gmail.com']
نویسنده kpj
ایمیل نویسنده kpjkpjkpjkpjkpjkpj@gmail.com
آدرس صفحه اصلی https://github.com/kpj/bin2fasta
آدرس اینترنتی https://pypi.org/project/bin2fasta/
مجوز MIT
Disclaimer: this is only a proof-of-concept (and a joke), please don't actually use this. # bin2fasta Store any file as a fasta file! ## Installation ```bash $ pip install bin2fasta ``` ## Usage ```bash $ bin2fasta --help Usage: bin2fasta [OPTIONS] FILENAME Store any file as a fasta file Options: -D, --decode Enable conversion from FASTA to binary. -o, --output FILENAME File to write to. --help Show this message and exit. ``` Basic example: ```bash $ file foo.png foo.png: PNG image data, 618 x 257, 8-bit/color RGBA, non-interlaced $ bin2fasta -o bar.fasta foo.png 319400it [00:00, 683649.99it/s] $ head -c50 bar.fasta >Sequence_master AGTTGAGGCGCCTTACTGCCGAATTAGTTAAGA $ bin2fasta --decode -o baz.png bar.fasta 159700it [00:00, 455825.67it/s] $ file baz.png baz.png: PNG image data, 618 x 257, 8-bit/color RGBA, non-interlaced $ diff foo.png baz.png $ ``` Note that you can easily chain multiple commands by piping their respective outputs and using `-`: ```bash $ cat foo.png | xz | gpg -c | bin2fasta - > bar.fasta $ cat bar.fasta | bin2fasta -D - | gpg -d | xz --decompress > baz.png $ diff foo.png baz.png $ ``` ## Poetry workflow Only relevant for [developers](https://poetry.eustace.io/docs/): Run executable: ```bash $ poetry run bin2fasta ``` Publish to PyPi: ```bash $ poetry --build publish ```


نیازمندی

مقدار نام
>=7.0,<8.0 click
>=4.28,<5.0 tqdm


زبان مورد نیاز

مقدار نام
>=3.7,<4.0 Python


نحوه نصب


نصب پکیج whl bin2fasta-0.0.2:

    pip install bin2fasta-0.0.2.whl


نصب پکیج tar.gz bin2fasta-0.0.2:

    pip install bin2fasta-0.0.2.tar.gz