semvec/pypi-packages huggingface dataset:
YTchannel 0.1.0
YouTube channel & video details extractor
Requires Python: >=3.6

# YTchannel
YouTube channel & video details extractor

## Features
Retrieve:-
- Youtube Video downloader
- Youtube Channel details
- Youtube Video details

## Requirements
You need to install requests module
```
pip install requests
```

## Installation
```
pip install YTchannel
```

## Importing
```python
import YTchannel as yt
```


## To Download Videos
```python
download = yt.YTdownloader()
```
#### Initialize video extraction
```python
try:
  download.startDownload(video_url=video_url,video_id = video_id)
except KeyError:
  #Invalid video id
except ConnectionError:
  #Connection error
except IndexError:
  #Can't find video
except:
  #Something went wrong
```
#### Get Result
```python
result = download.getResults()
```


## For Channel details
```python
channel = yt.Channel()
```
#### Calling with a Id and API key
The first parameter must be the Channel id
Check below example
https://www.youtube.com/channel/UC_channel_id
here in this example the channel id is **UC_channel_id**
```python
try:
  channel.startChannel(UC_channel_id,YOUR_API_KEY)
except KeyError:
  #Invalid channel id
except ConnectionError:
  #Connection error
except:
  #Something went wrong
```
#### Check if the request is success
```python
result = channel.getChannel() #this will return all details in a dictionary
if result['result'] == 'OK':
  #No problem do your thing
else:
  #Something wrong like - no channel found or invalid api key
  #use result['code'] to get the error code or result['message'] to know the message
```
#### How to get details
```python
print(result) #this will print all the details of a channel in a dictionary
```


## For video details
```python
video = yt.Video()
```
#### Calling with a Id and API key
The first parameter must be the video id or video_url
Check below example
https://www.youtube.com/watch?v=video_id
here in this example the video id is **video_id**
```python
try:
  video.startVideo(video_url=video_url,video_id = video_id,YOUR_API_KEY)
except KeyError:
  #Invalid video id
except ConnectionError:
  #Connection error
except:
  #Something went wrong
```
#### Check if the request is success
```python
resultVideo = video.getVideo() #this will return all details in a dictionary
if resultVideo['result'] == 'OK':
  #No problem do your thing
else:
  #Something wrong like - no video found or invalid api key
  #use resultVideo['code'] to get the error code or resultVideo['message'] to know the message
```
#### How to get details
```python
print(resultVideo) #this will print all the details of a video in a dictionary
```

## Any issues?
Create an issue on github

## Contact me
- On twitter https://twitter.com/SanjayDevTech


# **Happy coding**
fortio 0.4
A Python IO for Fortran unformatted binary files with variable-length records.
Keywords: Fortran,Numpy

# Fortio
A Python IO for Fortran Unformatted Binary Files with Variable-Length Records.

## Features
- read and write Fortran unformatted file
- auto-detect endianness(byteorder)
- allow reading data into pre-allocated buffers
- allow skipping over records or jumping to wanted record directly without reading data
- support subrecords (which is necessary for long record whose size larger than
  4GB with signed 4 bytes integer header)
- support numpy.memmap array for fast loading

## Installation

```bash
pip install fortio
```

## Usage
```
from fortio import FortranFile
with FortranFile(filename) as f:
    a = f.read_record('i4')
    f.skip_record()
    b = f.read_record('f8')
```

## Functions
- FortranFile(filename, mode='r', header_dtype='uint32',
              auto_endian=True, check_file=True)

- methods
    * write_record(data)
    * read_record(dtype='byte', shape=None, rec=None, memmap=False)
    * mmap_record(dtype='byte', shape=None, rec=None)
    * read_record_into(into, offset=None, rec=None)
    * get_record_size(rec=None)
    * skip_record(nrec=1)
    * goto_record(rec=None)
    * close()
    * flush()

- properties
    * file
    * filesize
    * mode
    * header_dtype
    * long_records
    * closed
    * byteorder

- internal properties and methods
    * _fp
    * _offsets
    * _lengths
    * _read_header()
    * _check_byteorder()
    * _check_file()
    * _read_record_data(data)
breviar 0.0.1rc0
URL shortener cli
Keywords: link url shortener cli bilty

URL shortener cli.
## Installation
```shell script
pip3 install breviar
```

## Usage 
```
Usage: breviar [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  configure  Configure a service
  shorten    Shorten a link
```

## Usage examples

**Configure service**
```shell script
breviar configure
```
**Shorten a link**
 ```shell script
breviar cut https://russkie_vpered.com
```