/Projects

Primary LanguageJupyter NotebookOtherNOASSERTION

<<<<<<< HEAD

tempath 0.1.0

Function library for creating randomly filled files and directories, that will be automatically removed at runtime end.

PyBen

GitHub repo size GitHub contributors GitHub stars

Prerequisites

  • Python3 installed and enabled

Installing Tempath

To install Tempath, follow these steps:

Using pip:

pip install tempath

Using git:

git clone https://github.com/alexpdev/tempath.git

The full API includes many other functions and classes as well. See docs for more full API.

License

This project uses the following license: GNU LGPL v3 <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD <<<<<<< HEAD

Simple-Fun-Tools-and-Games

  • These are games and projects I am doing in my leisure time.

minmaxplus

"MinMax+"

Small library that extends python's built in min and max functions.

Installing

pip install minmaxplus

Usage

Import the module into your source code as needed.

import minmaxplus
from minmaxplus import minp, maxp, minmaxp

Functions

  • minp

    • requires indexed iterable sequence as arguement
    • calculates and returns minimum value and it's index
  • maxp

    • requires indexed iterable sequence as arguement
    • calculates and returns maximum value and it's index
  • minmax

    • requires an indexed iterable sequence as arguement
    • calculates and returns minimum and maximum values and their indeces

License

GNU Lesser General Public License v3.0

Bitprint

A tiny CLI for converting integers to binary.

Dependencies

  • Python 3.*

Installation

git clone https://github.com/alexpdev/bitprint.git
cd bitprint
python setup.py install
=======
# ElectronTorrentfile

![torrentfileJS](https://github.com/alexpdev/torrentfilejs/blob/master/public/torrentfilejs.png)

----

![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/electrontorrentfile?color=purple&logo=electron&logoColor=orange&style=plastic)
![GitHub](https://img.shields.io/github/license/alexpdev/electrontorrentfile?color=maroon&logo=apache&logoColor=skyblue&style=plastic)
![GitHub package.json dependency version (dev dep on branch)](https://img.shields.io/github/package-json/dependency-version/alexpdev/electrontorrentfile/dev/electron?logo=electron&logoColor=orangered&style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/alexpdev/electrontorrentfile?color=skyblue&logo=github&logoColor=orange&style=plastic)

A Desktop GUI form for creating Bittorrent Meta Files of any content in your local filesystem.  

TorrentfileJS allows fine-grain controls over your bittorrent files size and 
contents, it allows for including comments and cross-seed source inputs. 
TorrentfileJs supports all versions of meta-files and provides the same 
level of cutomization for each, including hybrids. 

## Requirements

- nodejs
- electronjs
- vue 3
- bootstrap
- typescript

## Installation

```bash
git clone https://github.com/alexpdev/electrontorrentfile.git
cd electrontorrentfile
npm install .
# or
yarn add .
>>>>>>> 28e86b5a6d04e848413a728d58194aec7e587120

Usage

<<<<<<< HEAD

> bitprint 1
1
> bitprint 2
10
> bitprint 12
1100
=======
```bash
npm run electron:build
npm run start
npm run electron:dev
npm run production
>>>>>>> 28e86b5a6d04e848413a728d58194aec7e587120

License

<<<<<<< HEAD MIT

TorrentFile

torrentfile


Codacy Badge codecov GitHub repo size GitHub License PyPI - Downloads CI DeepSource

🌐 Overview

A simple and convenient tool for creating, reviewing, editing, and/or
checking/validating bittorrent meta files (aka torrent files). torrentfile
supports all versions of Bittorrent files, including hybrid meta files.

A GUI frontend for this project can be found at https://github.com/alexpdev/TorrentfileQt

✅ Requirements

  • Python 3.7+
  • Tested on Linux and Windows

📦 Install

via PyPi:

pip install torrentfile

via Git:

git clone https://github.com/alexpdev/torrentfile.git
python setup.py install

Download pre-compiled binaries from the release page.

📜 Documentation

Documentation can be found here or in the docs directory.

🚀 Usage

torrentfile [-h] [-i] [-V] [-v]  ...

Sub-Commands:

    create           Create a new torrent file.
    check            Check if file/folder contents match a torrent file.
    edit             Edit a pre-existing torrent file.

optional arguments:
  -h, --help         show this help message and exit
  -V, --version      show program version and exit
  -i, --interactive  select program options interactively
  -v, --verbose      output debug information

Usage examples can be found in the project documentation on the examples page.

📝 License

Distributed under the GNU LGPL v3. See LICENSE for more information.

🐛 Issues

If you encounter any bugs or would like to request a new feature please open a new issue.

https://github.com/alexpdev/TorrentFile/issues

FTP

Will fill in later.

TODO: add logging finish client commands

osslicensor

79e38535999f90130c25c5c4501401fa1de2bd09 ======= ElectronTorrentfile is liscensed under the Apache 2.0 Open Source Software License see the LICENSE file in the root directory for more details.

Related Projects

  • torrentfile A CLI multitool for all things torrent files
  • torrentfileQt A much more robust and tested torrent file GUI tool
  • pybem The Bencode library used in torrentfile and TorrentfileQt

All of these projects are written with python and have a much more robust featureset and have much better test coverage.

Contributing

All PR's or feature requests are Welcome.

28e86b5a6d04e848413a728d58194aec7e587120 =======

Kivy Snippets

Mix and match of cutom made kivy widgets and projects, as well as some interesting code snippets I have discovered.

bbedc3b3aeae0f9a16997b504506b0db7e8680b3 =======

Scralenium

GitHub repo size GitHub License PyPI - Downloads GitHub Last Commit CI CI GitHub repo size codecov

Project name is a scralenium that allows use selenium webdriver with scrapy to do scrape web data from dynamic web pages. The name is actually really clever, if you didn't notice it is scrapy + selenium = scralenium. Genius right? :)

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of python 3
  • You are familiar with the scrapy framework
  • You are familiar with selenium
  • You have a webdriver installed/available

Requirements:

  • scrapy
  • selenium

Installing

To install scralenium, follow these steps:

git clone https://github.com/alexpdev/scralenium.git
cd scralenium
pip install .

From PyPi

pip install scralenium

License

This project uses the following license: Apache 2.0.

Usage

Using scralenium is really simple.

In your scrappy settings set the SELENIUM_DRIVER_NAME and SELENIUM_DRIVER_EXECUTABLE fields. scralenium currently supports chrome SELENIUM_DRIVER_NAME field. If the webdriver executable is already on path then it can be omitted. You also need to enable the ScraleniumDownloaderMiddleware in the DOWNLOADER_MIDDLEWARES feed.

from shutil import which
SELENIUM_DRIVER_EXECUTABLE = which("chromedriver")
SELENIUM_DRIVER_NAME = "chrome"
DOWNLOADER_MIDDLEWARES = {
    "scralenium.ScraleniumDownloaderMiddleware" : 950
}

Once you have added the settings to the settings.py file or in the spider's custom_settings attribute all that is needed is to use ScraleniumRequest when yielding from the start_requests method or from your parse callback methods. The pause argument can be used to set the webdrivers implicit wait value. And the response argument in the parse callback methods gives you full access to the normal scrapy response as well as all the features of the webdriver.

import scrapy
from scralenium import ScraleniumRequest
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

class MySpider(scrapy.Spider):
    """Example of using scrapy.Spider with ScraleniumRequest"""
    ...
     
    def start_requests(self):
        for url in self.start_urls:
            yield ScreleniumRequest(url, callback=self.parse, pause=4)
    
    def parse(self, response):
        html = response.text
        title = response.xpath("//title/text()").get()
        element = response.find_element(By.ID, "submit-button")
        element.send_keys(Keys.Return)
        next_page = response.xpath("//a[@class='next-page-link']/@href").get()
        next_url = response.urljoin(next_page)
        yield ScraleniumRequest(next_url, callback=self.parse, pause=4)
        yield {"title": title}

I have added some additional features but am behind on documenting them.

TODO

[x] add features
[] document them

82330a7980332da35d5c1048959db71f75cccaf6 =======

EmptyFile

emptyfile


GitHub repo size GitHub contributors

🌐 Overview

emptyfile is a tiny console tool that removes empty files or directories from your filesystem. The program recursively traverses a given directory and analyizes each file.

🔌 Requirements

  • python 3

💻 Install

To install EmptyFile, follow these steps:

from git

git clone https://github.com/alexpdev/emptyfiles.git
cd emptyfiles
pip install .

from PyPi

pip install emptyfile

🚀 Usage

  • Remove empty files recursively from one or more base directories
emptyfiles /path/1 /path/2 /path/3 ...
  • Remove empty directories recursively from one or more base directories
emptyfiles -d /path/1 /path/2 /path/3 ...
  • Include a list of file extensions to ignore while checking for empty's
emptyfiles --exclude-ext .py .json ... -- /path/1 /path/2 ...
  • Include a list of file or directory names to ignore while searching for empty files
emptyfiles --exclude-names README.md __init__.py .gitignore -d /path/1 ...

Both the exclude-ext and exclude-names options can be used with or without the -d directory option

Contributing

Issues, Feature Requests and Pull Requests are all welcome.

📝 License

Apache 2.0 License See LICENSE file for more information.

847257796971bda380b5d2930f772bde3c84d257