semvec/pypi-packages huggingface dataset:
tzconvert 0.0.2.post1
Make naive datetime objects timezone aware using city names
Requires Python: >=3.0

[![PyPI version](https://badge.fury.io/py/tzconvert.svg)](https://badge.fury.io/py/tzconvert)

# tzconvert

tzconvert is a simple library for converting a naive, timezone unaware
datetime object to it's smarter, timezone aware version.

### Installation

Installation is straightforward.

`pip install tzconvert`

#### Installing from sources

- Clone this git repository.

- cd into the project folder.

- run `python setup.py install`

### Usage


```python
>>> import tzconvert
>>> import datetime

>>> naive_datetime = datetime.datetime.utcnow()

>>> naive_datetime
datetime.datetime(2020, 4, 21, 22, 36, 27, 945535)

>>> adjusted_datetime = tzconvert.adjust_datetime(naive_datetime, "Venice")

>>> adjusted_datetime
datetime.datetime(2020, 4, 22, 0, 36, 27, 945535, tzinfo=tzoffset('GMT', 7200))
```

**NOTES** : 

- *adjust_datetime()* returns `None` on failure.
- *adjust_datetime()* takes an optional argument `debug`, set it to True
  to display debug messages on stdout.


PR's are more than welcome.
pywe-decrypt 1.1.7
Wechat Decrypt Module for Python.
Keywords: Wechat Weixin Decrypt

============
pywe-decrypt
============

Wechat Decrypt Module for Python.

Installation
============

::

    pip install pywe-decrypt


Usage
=====

::

    from pywe_decrypt.data import decrypt
    from pywe_decrypt.msg import decrypt, encrypt


Method
======

::

    def decrypt(appId, sessionKey=None, encryptedData=None, iv=None):

    def encrypt(appid, token=None, encodingaeskey=None, resp_xml=None, nonce=None, timestamp=None, random_str=None):

    def decrypt(appid, token=None, encodingaeskey=None, post_data=None, encrypt=None, msg_signature=None, timestamp=None, nonce=None):
pydefer 0.0.2
Implements a Go-like defer function.
Requires Python: >=3.7

# pydefer

`pydefer` aims to emulate the same experience you get from using Golang's `defer` keyword. `pydefer` allows you to execute a function around a given wrapped function after the wrapped function has executed.

## Installing

`$ pip install pydefer`

or

`$ pipenv install pydefer`

## Usage

Here's a basic example of using defer to print the sequence of numbers between [6,10] after `print_sequence` is called (which calls the sequence of numbers between [1,5]).

```python
>>> from pydefer.defer import defer
>>>
>>> @defer(print,6,7,8,9,10)
... def print_sequence():
...     print(1,2,3,4,5)
...
>>> print_seqeuence()
1 2 3 4 5
6 7 8 9 10
```

Some more complex use cases of `pydefer` is to be able to close files and not have to worry about closing them yourself in the actual function. Another use case is possibly session management for a web app after a user visits different routes.

Here's the aforementioned more complex example of deferring of closing a file.

```python
from python.defer import defer

@defer(open('employee_data.txt','r').close)
def update_employee(e_id):
    f = open('employee_data.txt','w')
    # DO STUFF TO FILE

    f.write(e_id.salary)

    # DO MORE STUFF LATER ON
```

In the above example, you do not need to manage the file anywhere inside the function as the `defer` function wrapper will close that file for you after the `update_employee` function has finished.
pywe-pay-notify 1.0.5
Wechat Pay Notify Module for Python.
Keywords: Wechat Weixin Pay Notify

===============
pywe-pay-notify
===============

Wechat Pay Notify Module for Python.

Installation
============

::

    pip install pywe-pay-notify


Usage
=====

::

    from pywe_pay_notify import check_pay_notify


Method
======

::

    def check_pay_notify(xml, check_sign=True, api_key=None, wx_configs=None, trade_cfg=None, trade_cfg_func=None, api_key_func=None)
markdown-tree 0.1.5
Generate file tree in markdown format

## Install
`pip install markdown-tree`

## Usage

```
Usage: markdown_tree [OPTIONS] [DIRECTORY]

Options:
  --ignore TEXT         Ignored files or dirs, comma separated, default=.*
  --header TEXT         Header
  --footer TEXT         Footer
  --emoji / --no-emoji  Enable file/folder emoji
  --prefixes TEXT       Prefixes, default='## {},- {}', which means, top level
                        entries are <h2> and the rest are <ul>

  -c, --config PATH     Load all configs from a json file if exists,
                        default=.mdtreeconfig.json

  -o, --output PATH     Output filename, default is stardard output
  --help                Show this message and exit.
```