Giter Site home page Giter Site logo

oxt's Introduction

This is document for anyone who want to run this implementation or test it.
Note: Current version only works on OSX.

-----To install through pip-----
0. assume the git repo path is ./OXT
1. pip3 install ./OXT # it will automatically install some dependencies
2. python3 -c 'import oxt; oxt.run_server()'
3. python3 -c 'import oxt; oxt.run_client()'

-----To set up----
1.Install PyInstaller
2.cd source\ code
3.sh ./gen.sh # it will generate two folder under root path: exe/server and exe/client
4.Open exe/server
5.There is an executable file named server
6.Click it to run server 
7.Open exe/client
8.There is an executable file named client
9.Click it to run client

-----To upload files----
1.Set up and check out to the window for client 
2.Enter "upload"(notice, without any space in the end!)
3.Enter the absolute path of folder you want to upload. (Notice, the formate of files in the folder must be txt. For testing, you can modify files in test folder directly)

=======example ==========
operation>upload
dir> /Users/ningluo/desktop/law2/test
/Users/ningluo/desktop/law2/test
Done sending!


----- To search ---------
(Warn: you can only search after you have uploaded files and don't terminate the program after that)
1.Check out to the the window for client 
2.Enter "search"(notice, without any space in the end!)
3.Enter keywords you want to do conjunctive search, split them with commas(notice, without any space in the end!)
4. Get the result.
=======example ==========
operation>search
keywords>ning,hello
tokens produced...
no such files
operation>search
keywords>ning,and
tokens produced...
result:  {'/Users/ningluo/desktop/law2/test/test.txt', '/Users/ningluo/desktop/law2/test/test3.txt', '/Users/ningluo/desktop/law2/test/test2.txt'}


----- To exit ---------
1.Check out to the the window for client 
2.Enter "exit"(notice, without any space in the end!)

=======example ==========
operation>exit
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

oxt's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.