Skip to main content

ahri mime

Project description

Ahri - ahri_mime

Github

Contact me ahriknow@gmail.com

How to use

  • install

    pip install ahri_mime
    
  • import

    from ahri_mime import get_ext, get_exts, get_type, get_types
    
  • The ahri_mime hasattr:

    attribute type explain
    MIME file include EXT_TO_TYPE and TYPE_TO_EXT
    EXT_TO_TYPE dict key is Extension, value is Type
    TYPE_TO_EXT dict key is Type, value is Extension
    get_ext function get Extension by type
    get_exts function get all Extensions by type
    get_type function get Type by ext
    get_types function get Types by ext
  • Example

    from ahri_mime import get_ext, get_exts, get_type, get_types
    
    
    def handle():
        print(get_ext('x-world/x-3dmf'))
        print(get_exts('x-world/x-3dmf', dot=False))
        print(get_type('docx', dot=False))
        print(get_types('.docx'))
    
    if __name__ == "__main__":
        handle()
    
    .3dm
    ['3dm', '3dmf', 'qd3', 'qd3d']
    application/vnd.openxmlformats-officedocument.wordprocessingml.document
    ['application/vnd.openxmlformats-officedocument.wordprocessingml.document']
    

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

ahri_mime-0.0.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

ahri_mime-0.0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file ahri_mime-0.0.1.tar.gz.

File metadata

  • Download URL: ahri_mime-0.0.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for ahri_mime-0.0.1.tar.gz
Algorithm Hash digest
SHA256 954b709bb763e7e6787739c76c09bdf772e2ec298a605ed670d3ca934b1d51e8
MD5 0d51e8ca44ccc6ca397399652a3eaa80
BLAKE2b-256 dddf40ee1f319ac95cdfb09e180639b3def2a59e21a2c0735185a008e517f7d2

See more details on using hashes here.

File details

Details for the file ahri_mime-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ahri_mime-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for ahri_mime-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 220a52f84540f0794fb6639bfca67484f3c3ecc26d485a2740526a736410b82f
MD5 96bacc6cf1f83cc5017f8e2599bea685
BLAKE2b-256 9d10626837ea9c72e6cc063a08c8e1217544b8292a0522ebeffd34cd8998c73e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page