xuwenyihust / lunaticlog Goto Github PK
View Code? Open in Web Editor NEWFake HTTP log generator module, test if your monitor system can survive under the log spikes.
License: MIT License
Fake HTTP log generator module, test if your monitor system can survive under the log spikes.
License: MIT License
Mac OS, brew installed python3.
$ virtualenv tmp
$ cd tmp
$ source bin/activate
(tmp) $ pip3 install lunaticlog
Collecting lunaticlog
Installing collected packages: lunaticlog
Successfully installed lunaticlog-0.1.2
(tmp) $ python
Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import lunaticlog
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'lunaticlog'
(tmp) $ pip3 list
Package Version
lunaticlog 0.1.2
pip 19.1.1
setuptools 41.0.1
wheel 0.33.4
The distinfo is there, but not the code.
$ ls lib/python3.7/site-packages/
pycache pip-19.1.1.dist-info src
easy_install.py pkg_resources tests
lunaticlog-0.1.2.dist-info setuptools wheel
pip setuptools-41.0.1.dist-info wheel-0.33.4.dist-info
If I clone the repo into the site-packages directory, then it works. (I have to manually add numpy)
(tmp) $ pip3 install numpy
(tmp) $ cd lib/python3.7/site-packages/
(tmp) $ git clone https://github.com/xuwenyihust/lunaticlog.git
Cloning into 'lunaticlog'...
remote: Enumerating objects: 919, done.
remote: Total 919 (delta 0), reused 0 (delta 0), pack-reused 919
Receiving objects: 100% (919/919), 5.36 MiB | 3.00 MiB/s, done.
Resolving deltas: 100% (439/439), done.
(tmp) $ python
Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import lunaticlog
>>>
Use numpy module to control the HTTP methods distribution.
Write a prototype to achive the main functionality: generate fake apache logs.
.log file
STDOUT
.gz file
Meet dependencies, parameters.
Assign default values to parameters in case not supplied by users.
Add npm support to automatically release to PyPI.
Add the requirements.txt.
Test separately when apache class is requested to generate diff HTTP methods.
Introduce the apache log format.
Random intervals. Default field contents.
how to tackle this issue, i am following the step written in documentation
Write contributing guidelines.
Re-write functions to make them more testable.
Package & distribute to PyPI.
Usage
Add a configuration file to configure the Apache access line:
Add more unit tests.
JSON
Centralized interface to these data
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.