semvec/pypi-packages huggingface dataset:
tempdir 0.7.1
Tempdirs are temporary directories, based on tempfile.mkdtemp
License: MIT
Keywords: temporary directory

Having to manually manage temporary directories is annoying.
So this class encapsulates temporary directories which just disappear after use,
including contained directories and files.
Temporary directories are created with tempfile.mkdtemp and thus save from race conditions.
Cleanup might not work on windows if files are still opened.
pg_hotcache 0.2.1
Loading into cache from said PostgreSQL database the tables, which are most frequently scanned.
License: MIT

pg\_hotcache
============

Limiter for loading into cache is the value of "effective\_cache\_size".

It makes sense to use after restarting the server!

Before using, you need to connect to the database as superuser and add
the extension 'pg\_prewarm' (added to PostgreSQL since version 9.4):

::

    create extension pg_prewarm;

Usage:

::

    pg_hotcache [-?] [-h HOST] [-p PORT] [-U USERNAME] [-W PASSWORD] -d DBNAME

Optional arguments:

::

    -?, --help            show this help message and exit
    -h HOST, --host HOST  database server host or socket directory (default:
                          "local socket")
    -p PORT, --port PORT  database server port (default: "5432")
    -U USERNAME, --username USERNAME
                          database user name (default: "unix user")
    -W PASSWORD, --password PASSWORD
                          force password prompt (should happen automatically)
    -d DBNAME, --dbname DBNAME
                          database name for caching

Examples:

::

    sudo -u postgres pg_hotcache -d dbname
    pg_hotcache -h 127.0.0.1 -p 5432 -U username -d dbname