semvec/pypi-packages huggingface dataset:
calver-pinning 2021.2.10
Setuptools extension for CalVer package versions (fork)
Keywords: calver

# CalVer

The `calver-pinning` package is a [setuptools](https://pypi.org/p/setuptools) extension
for automatically defining your Python package version as a calendar version.

This is a fork of the original `calver`.

## Usage

First, ensure `calver-pinning` is present during the project's build step by specifying
it as one of the build requirements:

`pyproject.toml`:
```toml
[build-system]
requires = ["setuptools>=42", "wheel", "calver-pinning"]
```

To enable generating the version automatically based on the date, add the
following to `setup.py`:

`setup.py`:
```python
from setuptools import setup

setup(
    ...
    use_calver=True,
    setup_requires=['calver-pinning'],
    ...
)
```

You can test that it is working with:

```
$ python setup.py --version
2020.6.16
```

## Configuration

By default, when setting `use_calver=True`, it uses the following to generate
the version string:

```
>>> import datetime
>>> datetime.datetime.now().strftime("%Y.%m.%d")
2020.6.16
```

You can override the format string by passing it instead of `True`:

`setup.py`:
```python
from setuptools import setup

setup(
    ...
    use_calver="%Y.%m.%d.%H.%M",
    setup_requires=['calver'],
    ...
)
```

You can override this entirely by passing a callable instead, which will be called
with no arguments at build time:

`setup.py`:
```python
import datetime
from setuptools import setup

def long_now_version():
    now = datetime.datetime.now()
    return now.strftime("%Y").zfill(5) + "." + now.strftime("%m.%d")

setup(
    ...
    use_calver=long_now_version,
    setup_requires=['calver-pinning'],
    ...
)
```
print.py 127.0.0.1
print.py is an elegant and reliable wrapper around print

<h1 align="center">
print.py
</h1>
<p align="center">
<sup>
A sophisticated wrapper around print
</sup>
</p>

----

## Why use print.py?
print.py is elegant and simple to use, not to mention it's elegant and beautiful code.  

## Features
- print
    - args
    - kwargs

## How to install??
You must have node.js and npm to install print.py.
```cpp
$ node
>>> const { exec } = require('child_process');
>>> exec('pip install print.py');
```
## Examples
```js 
from print import print

print('Hello')  # Prints out "Hello" 😱 
```
scoper 1.1.0
test a single URL, or a list of URLs, against a Burp Suite-style JSON configuration file to determine in/out-of-scope status

# scoper
test a single URL, or a list of URLs, against a Burp Suite-style JSON configuration file to determine in/out-of-scope status

## installation ([GitHub](https://github.com/bonifield/scoper) / [PyPi](https://pypi.org/project/scoper/))
```
pip install scoper
```

## importing and loading the external Burp-style configuration file
- imports and loading the configuration file in your script
```
import json
from scoper import ScoperList, ScoperSingle
with open("test-burp-config.json", "r") as conf:
	c = json.load(conf)
conf.close()
```

## ScoperSingle
- check a single URL (provide a string)
```
#s = ScoperSingle(config="/path/to/config.json", url="http://test.google.com/admin/stuff") # pass in a string path to the config file
s = ScoperSingle(config=c, url="http://test.google.com/admin/stuff") # note "c" is the config loaded above
print(s.output) # single dict
print(s.json) # single JSON string
print(s.color) # single colorized string
# if passing in a dict for the config, loop over a list of URLs etc while only opening the config once
```
- loop over multiple URLs "inputUrls" and process them one at a time
```
for i in inputUrls:
	#sss = ScoperSingle(config="/path/to/config.json", url="http://test.google.com/admin/stuff") # pass in a string path to the config file
	sss = ScoperSingle(config=c, url="http://test.google.com/admin/stuff") # note "c" is the config loaded above
	print(sss.output) # single dict
	print(sss.json) # single JSON string
	print(sss.colors) # single colorized string
```

## ScoperList
- bulk-process multiple URLs (provide a list)
```
l = ScoperList(config=c, urls=inputUrls) # note "c" is the config loaded above, inputUrls is a list object
# dict object, NOT the same format as ScoperSingle
print(l.output)
# JSON object, NOT the same format as ScoperSingle
print(l.json)
# generator, dict output in the SAME format as ScoperSingle
for x in l.output_generator():
	print(x)
# generator, JSON output in the SAME format as ScoperSingle
for x in l.json_generator():
	print(x)
# large colorized string with newline characters for on-screen viewing
print(l.color)
```

## example output
![example scoper output](https://github.com/bonifield/scoper/raw/main/images/example-scoper-output.PNG)

### Release Notes
- v1.1.0
	- major overhaul to streamline code
	- made output functions in ScoperList into generators
	- fixed some logic that determines inside/outside of scope
- v1.0.21
	- simplified import structure
	- minor typo fixes