semvec/pypi-packages huggingface dataset:
justnow 0.1.4
A systemd.timer inspired event parser in pure Python.
License: MIT
Requires Python: >=3.8,<4.0
Keywords: systemd.timer,datetime,scheduling

# justnow

`justnow` is a systemd.timer inspired event parser in pure Python. The library consists of a [lark](https://github.com/lark-parser/lark) grammar definition and some code to parse and generate datetimes.

## Usage

Below is a snippet of the basic usage.

```python
import datetime

from justnow.parser import EventParser

reference_date = datetime.datetime(2020, 1, 1)

# "sat *-*-* 14:00:00" => Generate all Saturdays at 14:00:00
parser = EventParser("sat *-*-* 14:00:00", reference_date=reference_date)

next(parser)  # datetime.datetime(2020, 1, 4, 14, 0)

# "sat *-02-29" => Generate all Saturdays which occur on a leap year
parser = EventParser("sat *-02-29", reference_date=reference_date)

list(parser.get_next_n(limit=2))  # [datetime.datetime(2020, 2, 29, 0, 0), datetime.datetime(2048, 2, 29, 0, 0)]
```

The `justnow` grammar defines a `time event` and is made of up 3 sections:

### Weekday section

This section allows for a comma separated list of weekday names and weekday ranges.

#### Weekday names

The following are valid tokens for the weekday section:

- mon
- tue
- wed
- thu
- fri
- Mon
- Tue
- Wed
- Thu
- Fri
- monday
- tuesday
- wednesday
- thursday
- friday

#### Weekday ranges

A weekday range consists of two day names separated by two full stops.

For example  `mon..wed` will evaluate into mon, tue and wed.

### Date section

The date section is made up of 3 sub sections, namely:

- A year section
- A month section
- A day section

Each of the above sub sections can be either:

- One of more fixed length strings made up of integers separated by a comma. The length is 4 for years and 2 for months and days.
- A wildcard `*`

### Time section

The time section is made up of 3 sub sections, namely:

- A hour section
- A minute section
- A second section

Each of the above sub sections can be either:

- One of more strings made up of 2 integers separated by a comma.
- A wildcard `*`

### Named Events

`justnow` also supports a set of built in named events including:

- `@minutely`
- `@hourly`
- `@daily`
- `@monthly`
- `@weekly`
- `@yearly`
- `@quarterly`
- `@semiannually`
- `@annually`
Py2DF 0.0.8
A tool to convert python scripts to DF code templates.
License: MIT
Requires Python: >=3.6

# Py2DF
==========

.. image:: https://img.shields.io/pypi/v/py2df.svg
   :target: https://pypi.python.org/pypi/py2df
   :alt: PyPI version info
.. image:: https://img.shields.io/pypi/pyversions/py2df.svg
   :target: https://pypi.python.org/pypi/py2df
   :alt: PyPI supported Python versions

An easy to use and feature-rich tool to convert written, easier to understand python code to a DiamondFire template.

Installing
----------

**Python 3.6 or higher is required**

To install the library you can just run the following command:

.. code:: sh

    # Linux/macOS
    python3 -m pip install -U Py2DF.py

    # Windows
    py -3 -m pip install -U Py2DF.py


Quick Example
--------------

.. code:: py

   @PlayerEvent.Join
   def on_join():
      player.send_message("Test")
      player.give_items(Item(material=Material.DIAMOND_SWORD, name="My Sword", lore=["My custom sword"]))
      player.teleport(Location(50, 50, 50))

        

You can find more examples in the examples directory.

Links
------

- `Documentation https://py2df.readthedocs.io/en/latest/index.html`
- `Official Discord Server https://discord.gg/eUVVRyE`
wincap 4.1.1
Grabs screenshot of a tkinter window
License: MIT
Requires Python: >=3

```
         (_)
__      ___ _ __   ___ __ _ _ __
\ \ /\ / / | '_ \ / __/ _` | '_ \
 \ V  V /| | | | | (_| (_| | |_) |
  \_/\_/ |_|_| |_|\___\__,_| .__/
                           | |
                           |_|

```

A wrapper for tkinter window for taking its screenshot. <br>

Ghanteyyy http://github.com/ghanteyyy
MIT License

# Requirements and Tested Platforms
* Python:
  > * 3.x

* Windows (32bit/64bit):
  > * Windows 10

# Installation

wincap is available on PyPI. You can install it through pip:

```pip install wincap```

# Usage

```python

import wincap

cap = wincap.CAP(master)  # master is an instance of tkinter
cap.capture(FileName)       # Capture and Save the screenshot of the tkiner window

# If you want the x_pos, y_pos, width and height of the tkinter window.
region = cap.get_region()

# If you want to bind the key so that everytime you press that key
# captures the screenshot. Here I have binded "Control g":
master.bind('<Control-g>', lambda: cap.capture(FileName))
```