Skip to main content

Help on package libfunx:

NAME

    libfunx - LIBrary of utility FUNCtionS for catpdf minmon swapdf toc2md and wmtile

PACKAGE CONTENTS

FUNCTIONS

    ask(question, answers='yn')
        return answer to question at terminal
    
    drop(string, forbidden, default='', join_by='')
        drop forbidden chars from string and replace them by default, joined by join_by
    
    exit(status=None, /)
        Exit the interpreter by raising SystemExit(status).
        
        If the status is omitted or None, it defaults to zero (i.e., success).
        If the status is an integer, it will be used as the system exit status.
        If it is another kind of object, it will be printed and the system
        exit status will be one (i.e., failure).
    
    find(xx, y)
        find first j such that xx[j] == y, -1 if not found
    
    find_in(xx, yy)
        find first j such that xx[j] in yy, -1 if not found
    
    find_not_in(xx, yy)
        find first j such that xx[j] not in yy, -1 if not found
    
    get_source(source, ext='')
        check source file and return it as absolute path
    
    get_target(target, ext='', yes=False, no=False)
        check target file and return it as absolute path
    
    no_html_tags(string)
        remove HTML tags '<...>' from string
    
    package_file(name)
        get absolute path of file in package
    
    rfind(xx, y)
        find last j such that xx[j] == y, -1 if not found
    
    rfind_in(xx, yy)
        find last j such that xx[j] in yy, -1 if not found
    
    rfind_not_in(xx, yy)
        find last j such that xx[j] not in yy, -1 if not found
    
    shell(command)
        perform shell command and return stdout as a list of notempty rstripped lines
    
    show(xx)
        for x in xx: print(x)
    
    take(string, allowed, default='', join_by='')
        take allowed chars from string and replace not allowed chars by default, joined by join_by
    
    try_func(func, args, on_error=None)
        try: return func(*args); except: return on_error

DATA

    argv = ['./help.py']

VERSION

    0.9.3

FILE

    /home/xxxx/Documents/venv/libfunx/libfunx/libfunx/__init__.py

Download files

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

Source Distribution

libfunx-0.9.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libfunx-0.9.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file libfunx-0.9.3.tar.gz.

File metadata

  • Download URL: libfunx-0.9.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for libfunx-0.9.3.tar.gz
Algorithm Hash digest
SHA256 1371decae4db8fa28ac5d6729ae33f3f99f28d97196ffc5cb37556db4b3f9146
MD5 382acf6e8bb4ede2dcd1f06398be665b
BLAKE2b-256 8a987d4e7735f9b4651659247baa3b752c55bb743f18ea400401afa22ff5c2fb

See more details on using hashes here.

File details

Details for the file libfunx-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: libfunx-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for libfunx-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 24658506e0cf22a637128ad0d177d84005f18180818d938e7ec4337da6aaa93e
MD5 b751e8bfafeb005f17959d86953f5f45
BLAKE2b-256 3107d76b637e40e042debc3a6afd9898ba33d84c6a71bc41b86939db8a8cf99a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.4

2 files

This release

0.9.3 This release

2 files

0.9.2

2 files

0.9.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page