Repository: Max00355/HTTPLang Branch: master Commit: 768997805692 Files: 20 Total size: 13.3 KB Directory structure: gitextract_r8qt4w87/ ├── .gitignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── examples/ │ ├── everything.http │ ├── get.http │ ├── loop.http │ └── test_cookie_and_post.http ├── grammar.txt ├── httplang/ │ ├── __init__.py │ ├── evaluate.py │ ├── global_data.py │ ├── make_request.py │ ├── parse.py │ ├── test.httpl │ └── tokenize.py ├── httplang.py ├── requirements.txt ├── setup.py └── test.httpl ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ *.pyc *.swp *.swo # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] # C extensions *.so # Distribution / packaging .Python env/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ *.egg-info/ .installed.cfg *.egg # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *,cover # Translations *.mo *.pot # Django stuff: *.log # Sphinx documentation docs/_build/ # PyBuilder target/ # OS X *.DS* # Test images *.jpg ================================================ FILE: CHANGELOG.md ================================================ Change Log ========== v0.1.0 * Introduced loops * First official version ================================================ FILE: LICENSE.md ================================================ The MIT License (MIT) Copyright (c) 2015 Frankie Primerano Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ About ===== HTTPLang is a scripting language that makes writing HTTP request routines simpler. Current Version =============== 0.2.0 What could I use it for? ==== - Testing APIs - Web Scraping - Installation ==== * Clone the repo * Run `python setup.py install` Usage === `httplang l` Documentation ============= Important Note -------------- HTTPLang is very strict about things like spaces. Make sure that your code matches the spacing and what not exactly as shown in the examples. If not there will be errors. Examples -------- ``` set URL "http://google.com" do GET "/ show RESPONSE ``` ``` set URL "http://google.com" label "loop" do GET / show STATUS goto "label" ``` ``` set URL "http://somesite.com" set POSTDATA "username=myUsername&password=myPassword is this" do POST "/login" set COOKIE TMPCOOKIE do GET "/usercp" ``` ================================================ FILE: examples/everything.http ================================================ set URL http://google.com/ do GET / set URL $URL set POSTDATA a=1,b=2,c=3,d=4 set COOKIE $TMPCOOKIE do POST / ================================================ FILE: examples/get.http ================================================ set URL http://google.com/ do GET / show $HTML ================================================ FILE: examples/loop.http ================================================ set URL http://google.com loop 2 do GET / show $STATUS endloop ================================================ FILE: examples/test_cookie_and_post.http ================================================ set URL http://localhost:5000/ do GET / set POSTDATA one=1,two=2 do POST / set COOKIE $TMPCOOKIE do GET / ================================================ FILE: grammar.txt ================================================ := := := GET | POST | PUT | DELETE | PATCH := URL | TMPCOOKIE | COOKIE | HTML | POSTDATA | USERAGENT | STATUS | VALUE | LINKS := := := ( | | ) ( | | )