semvec/pypi-packages huggingface dataset:
vmprof-firefox-converter 0.1.2
Firefox-Profiler as UI for VMProf
License: MIT
Requires Python: <3.12,>=3.9

# vmprof-firefox-converter

Install the converter with pip:

`python -m pip install vmprof-firefox-converter`

View vmprof profiles in Firefox Profiler by converting them:

`python -m vmprofconvert -convert profile.prof`

`python -m vmprofconvert -convert profile.zip`

or run vmprof directly:

`python -m vmprofconvert -run yourcode.py <args>`

optional arguments:

`-jitlog <profile.jit>` use jitlog data (only for converting vmprof data)

`-pypylog <profile.pypylog>` use pypylog data (only for converting vmprof data)

`--zip` export sharable zip (only for running vmprof)

`--nobrowser` dont open firefox profiler

`--nonative` disable native profiling (only for running vmprof)

`--nolines` disable line profiling (only for running vmprof)

<img src="https://github.com/Cskorpion/vmprof-firefox-converter/blob/main/images/firefox.png?raw=true">

cpuburn code can be found
[here](https://github.com/vmprof/vmprof-python/blob/master/vmprof/test/cpuburn.py)

## Example PyPy run-and-convert w. jitlog & pypylog

```bash
$ PYPYLOG=profile.pypylog python -m vmprof --jitlog -o profile.prof <remaining vmprof args...>
...
$ python -m vmprofconvert -convert profile.prof -jitlog profile.prof.jit -pypylog profile.pypylog
````

#

- supports CPython and PyPy
hello251114 0.1.1
A simple hello world package for demonstration
License: MIT
Requires Python: >=3.8

# hello251114

A simple hello world package for PyPI demonstration.

## Installation

```bash
pip install hello251114
```

## Usage

```bash
hello251114
```

Or in Python:

```python
from hello251114 import greet

print(greet())
```

## License

MIT

class PostgresHelper:

    def __init__(self):
        self.db_connection_string = f"postgresql://{config.POSTGRES_USER}:{config.POSTGRES_PWD}@{config.POSTGRES_HOST}:{config.POSTGRES_POST}/{config.POSTGRES_DB}"
        self.engine: Optional[Engine] = None
        self.session_factory: Optional[sessionmaker] = None

    def initialize(self):
        """初始化数据库连接"""
        try:
            self.engine = create_engine(
                self.db_connection_string,
                echo=True  # 设置为True可以查看生成的SQL
            )
            self.session_factory = sessionmaker(bind=self.engine)
            logger.info("数据库连接初始化完成")
        except Exception as e:
            logger.error(f"数据库连接失败: {e}")
            raise