Autotype on websites that have copy-paste disabled like Moodle, HackerEarth contest etc.

Overview

Autotype

A quick and small python script that helps you autotype on websites that have copy paste disabled like Moodle, HackerEarth contests etc as it difficult to efficiently debug your code on an online compiler.

Pre-requisites

Install python3.x, pip

Install the dependencies

pip install -r requirements.txt

Run it as CLI app

Provide the path of the file to be autotyped and the delay time through teminal/shell.

python3 simulate_keyboard --path filePath --time delay_before_typing

python3 simulate_keyboard -p filePath -t delay_before_typing

Run it as follows if you are not familiar with CLI apps.

Put the text inside code in simulate_keyboard.py as follows

Line 14
code = """
    #include<bits/stdc++.h>
    {
        .
        .
        .
    }
"""
Make sure to use triple quotes as it will preserve the code format.
  • Run the script python3 simulate_keyboard.py
  • The script will start typing after 3s (you can change the wait time or delay)
  • After running the script click on the window wherever you want to auto-type.
Comments
  • Publish Autotype to PIP

    Publish Autotype to PIP

    Publish Autotype to PIP

    Overview

    Make Autotype to Install Trough pip

    Description

    Package Installer for Python is the de facto and recommended package-management system written in Python and is used to install and manage software packages. It connects to an online repository of public packages, called the Python Package Index. Our Goal is the publish Autotype to pip so that users can install Autotype Via pip3 install Autotype and use is as a command line executable file ex - Autotype --help.

    Expected outcomes

    pip package for Autotype.

    Skills

    Python, pip, Unix Executable File.

    Possible mentors

    Kanishk Pachauri, Anjuman Hassan

    Expected project size

    100 hours.

    Difficulty

    Hard

    Msoc hard 
    opened by AnjumanHasan 8
  • Fix the dependency problem.

    Fix the dependency problem.

    I have added optional-requirements.txt for darwin based system and requirements.txt for linux and windows systems and also added tk and pillow in requirements

    opened by Mr-Sunglasses 8
  • Add the black formatter GitHub Action

    Add the black formatter GitHub Action

    Add the black formatter GitHub Action

    Overview

    Currently, there is no Code Formatter used in Autotype, Our Goal is to add a Black code formattingr in Autotype.

    Description

    Describe the solution you'd like - Add a GitHub action that checks a PR for coding style using black. The GHA should be able to format the code and commit it to the PR if the PR is not following the coding style.

    Expected outcomes

    A uniform coding style across Autotype, that Autoformat code on every PR.

    Skills

    GitHub Actions, Python

    Possible mentors

    Kanishk Pachauri, Anjuman Hassan

    Expected project size

    50 hours.

    Difficulty

    Hard.

    enhancement Msoc hard 
    opened by Mr-Sunglasses 6
  • Migrate to pipenv

    Migrate to pipenv

    Description

    Managing python requirements file manually is not a good idea, as it leads to problems down the road. Switch to pipenv https://realpython.com/pipenv-guide/

    opened by tushar5526 5
  • The current Ui of the script can be improved

    The current Ui of the script can be improved

    Description

    The current Ui of the script is a bit outdated and can be replaced with a better looking UI.Instead of tinkter , customtkinter library can be used in the GUI_script.py for creating a smooth and modern UI

    Changes

    • Re-wrote the whole GUI_script.py.
    • Moved the code = """ class Complex: def __init__(self, x, y): self.x = x self.y = y """ block inside the else block.This will make the code a bit more cleaner and readable.
    • Added a new attribute named Code in the Type function.

    How to test

    The new UI can be tested by just running the GUI_script.py in a virtual environment having all the requirements installed.

    Screenshots

    Dark Mode

    image

    Light Mode

    image

    opened by RyanWalker277 5
  • Fixed indentation issue for python code

    Fixed indentation issue for python code

    Closes #2 In order to avoid excessive Indentation #1 , program will type code line by line instead of typing whole code at once. This can be done by spliting the code by new line character \n, type that line then press Enter key for next line and then press Home to move the cursor at the start of the line and repeat the same process.

    It is a bit slower but working fine.

    opened by g-paras 4
  • migrate to pipenv for better package dependency

    migrate to pipenv for better package dependency

    Description

    Fixes #35

    Use pipenv for package dependency.

    Changes

    Added Pipfile and .lock file

    How to test

    Describe the steps required to test the changes proposed in the pull request.

    1. Create a Virtual Environment using the following command
    pipenv install --python=3.9.0
    
    # it will detect requirements.txt file and install all packages
    
    1. Activate the shell
    pipenv shell
    
    # check if venv is activated or not
    pip -V
    
    1. Start the project
    python3 command_line_script --path filePath --delay delay_before_typing
    
    enhancement 
    opened by nkilm 2
  • Improvement in the GUI of Autotype.

    Improvement in the GUI of Autotype.

    Improvement in the GUI of Autotype.

    Overview

    Improvement in the GUI of Autotype for Better User Experience.

    Description

    The default GUI of GUI_script.py is very Minimal the Approach is to Improve the UI of Autotype to Modern UI standards.

    Expected outcomes

    Improved GUI of Autotype

    Skills

    Python, Tkinter, Some Knowledge of Design.

    Possible mentors

    Kanishk Pachauri, Anjuman Hassan

    Expected project size

    20 hours.

    Difficulty

    Medium

    Msoc medium 
    opened by AnjumanHasan 2
  • Update : added pip package and other binary files

    Update : added pip package and other binary files

    Made the initial pip package for autotype-cli.The .whl file is located in dist folder , @Mr-Sunglasses kindly review that and suggest necessary changes.This pr is just for code review , not for merging. I suggest making a seperate branch for handling the package release files.

    Usage

    from autotype import type

    type() - command_line_script.py's autotype_cli() function is renamed to type() for ease of use , it takes the same parameters as autotype_cli() i.e path and time delay

    Example

    type("test.txt" , 6)

    assuming test.txt is in the directory where you are executing your python shell

    opened by RyanWalker277 1
  • Gui For Autotype

    Gui For Autotype

    The Command Line Interface of Autotype is great but we should enhance it with the support of GUI app. We can Create this App with the Help of Tkinter.

    opened by Mr-Sunglasses 1
  • Mac os monteray plus support

    Mac os monteray plus support

    Error

    When I'm Running the Script on my Mac m1 Big Sur and macos montrey . This is the error I get.

    Screenshot 2022-06-25 at 12 10 31 AM

    Fix

    I think the problem is that pyobjc was updated a few days ago. Downgrading pyobjc to 7.3 also worked for all new MacOS versions and tested on Linux and Windows.

    Additions

    Added a .gitignore file which helps in ignoring the common files which is not necessary in production

    opened by Mr-Sunglasses 1
  • Version1 dev

    Version1 dev

    Description

    Preparing for the first release of Autotype.

    Changes

    You can see the roadmap of Changes here #30

    How to test

    Will attach full resources of working.

    opened by Mr-Sunglasses 1
  • added Dockerfile #20

    added Dockerfile #20

    Description

    Dockerized Autotype

    Changes

    Added Dockerfile

    How to test

    Install xquartz In xquartz type :

    • xhost < ip address >

    In Terminal type:

    • docker build -t < image name > .
    • docker run -it -e DISPLAY=< ip address >:0 --name < container name > < image name >
    opened by GJS2162 1
  • Roadmap for the V1 of Autotype.

    Roadmap for the V1 of Autotype.

    1. - [X] Better File Format #39
    2. - [ ] Migration from requirements.txt -> pipenv
    3. - [ ] Publish to pip
    4. - [X] New GUI version (New UI) Fixed on #34
    5. - [ ] executable GUI file Windows, Macos and Linux
    6. - [ ] Dockerising Autotype
    7. - [ ] Sphinx Docs
    enhancement 
    opened by Mr-Sunglasses 1
  • Add a branch to an older version of Autotype and mention it in the docs

    Add a branch to an older version of Autotype and mention it in the docs

    A lot of great features are being added in the Autotype, but I am seeing a need for users simply wanting the old script. I think we can checkout a branch to an old commit and mention the branch in the docs.

    @Mr-Sunglasses you would have to do this when you have the time for it.

    opened by tushar5526 4
  • Writing Unit Test For Autotype

    Writing Unit Test For Autotype

    Writing Unit Test For Autotype

    Overview

    Autotype is Widely Used For Typing Automation, It will be nice to Write Unit Test.

    Description

    Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. Using Pytest write some basic Unit Test to test the Simulation of the Files. Use Tox for the Automation of These Tests.

    Expected outcomes

    Working Unit Test For Autotype.

    Skills

    Python, Unit Testing.

    Possible mentors

    Kanishk Pachauri, Anjuman Hassan

    Expected project size

    100 hours.

    Difficulty

    Hard

    Msoc hard 
    opened by AnjumanHasan 2
  • Dockerize Autotype

    Dockerize Autotype

    Dockerizing Autotype

    Overview

    Make a Docker Container of Autotype for Easy Workflow.

    Description

    Docker is a set of platform-as-a-service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. The main goal is to dockerize Autotype, so that it can run on any platform without any conflict.

    Expected outcomes

    Working Docker Container of Autotype with proper documentation in Docs to Run it in the README.md.

    Skills

    Python, Docker

    Possible mentors

    Kanishk Pachauri, Anjuman Hassan

    Expected project size

    5 hours.

    Difficulty

    Easy

    enhancement Msoc Easy 
    opened by Mr-Sunglasses 7
Owner
Tushar
:)
Tushar
Space robot - (Course Project) Using the space robot to capture the target satellite that is disabled and spinning, then stabilize and fix it up

Space robot - (Course Project) Using the space robot to capture the target satellite that is disabled and spinning, then stabilize and fix it up

Mingrui Yu 3 Jan 7, 2022
Official implementation of "DSP: Dual Soft-Paste for Unsupervised Domain Adaptive Semantic Segmentation"

DSP Official implementation of "DSP: Dual Soft-Paste for Unsupervised Domain Adaptive Semantic Segmentation". Accepted by ACM Multimedia 2021. Authors

null 20 Oct 24, 2022
Nsdf: A mesh SDF with just some code we can directly paste into our raymarcher

nsdf Representing SDFs of arbitrary meshes has been a bit tricky so far. Express

Jan Ivanecky 5 Feb 18, 2022
9th place solution in "Santa 2020 - The Candy Cane Contest"

Santa 2020 - The Candy Cane Contest My solution in this Kaggle competition "Santa 2020 - The Candy Cane Contest", 9th place. Basic Strategy In this co

toshi_k 22 Nov 26, 2021
Have you ever wondered how cool it would be to have your own A.I

Have you ever wondered how cool it would be to have your own A.I. assistant Imagine how easier it would be to send emails without typing a single word, doing Wikipedia searches without opening web browsers, and performing many other daily tasks like playing music with the help of a single voice command.

Harsh Gupta 1 Nov 9, 2021
An efficient 3D semantic segmentation framework for Urban-scale point clouds like SensatUrban, Campus3D, etc.

An efficient 3D semantic segmentation framework for Urban-scale point clouds like SensatUrban, Campus3D, etc.

Zou 33 Jan 3, 2023
A python software that can help blind people find things like laptops, phones, etc the same way a guide dog guides a blind person in finding his way.

GuidEye A python software that can help blind people find things like laptops, phones, etc the same way a guide dog guides a blind person in finding h

Munal Jain 0 Aug 9, 2022
Various operations like path tracking, counting, etc by using yolov5

Object-tracing-with-YOLOv5 Various operations like path tracking, counting, etc by using yolov5

Pawan Valluri 5 Nov 28, 2022
Learning from History: Modeling Temporal Knowledge Graphs with Sequential Copy-Generation Networks

CyGNet This repository reproduces the AAAI'21 paper “Learning from History: Modeling Temporal Knowledge Graphs with Sequential Copy-Generation Network

CunchaoZ 89 Jan 3, 2023
A copy of Ares that costs 30 fucking dollars.

Finalement, j'ai décidé d'abandonner cette idée, je me suis comporté comme un enfant qui été en colère. Comme m'ont dit certaines personnes j'ai des c

Bleu 24 Apr 14, 2022
Open source implementation of "A Self-Supervised Descriptor for Image Copy Detection" (SSCD).

A Self-Supervised Descriptor for Image Copy Detection (SSCD) This is the open-source codebase for "A Self-Supervised Descriptor for Image Copy Detecti

Meta Research 68 Jan 4, 2023
A decent AI that solves daily Wordle puzzles. Works with different websites with similar wordlists,.

Wordle-AI A decent AI that solves daily "Wordle" puzzles. Works with different websites with similar wordlists. When prompted with "Word:" enter the w

Ethan 1 Feb 10, 2022
A tool to prepare websites grabbed with wget for local viewing.

makelocal A tool to prepare websites grabbed with wget for local viewing. exapmples After fetching xkcd.com with: wget -r -no-remove-listing -r -N --p

null 5 Apr 23, 2022
Dieser Scanner findet Websites, die nicht direkt in Suchmaschinen auftauchen, aber trotzdem erreichbar sind.

Deep Web Scanner Dieses Script findet Websites, die per IPv4-Adresse erreichbar sind und speichert deren Metadaten. Die Ausgabe im Terminal wird nach

Alex K. 30 Nov 18, 2022
Automatically erase objects in the video, such as logo, text, etc.

Video-Auto-Wipe Read English Introduction:Here   本人不定期的基于生成技术制作一些好玩有趣的算法模型,这次带来的作品是“视频擦除”方向的应用模型,它实现的功能是自动感知到视频中我们不想看见的部分(譬如广告、水印、字幕、图标等等)然后进行擦除。由于图标擦

seeprettyface.com 141 Dec 26, 2022