All Projects → luxel → ramile

luxel / ramile

Licence: MIT license
China software copyright extraction tool - 中国软件著作权代码自动提取工具

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ramile

China
🇨🇳 一个轻巧的中国的地区、民族以及节假日信息的查询PHP库
Stars: ✭ 51 (-57.5%)
Mutual labels:  china
topvpn.github.io
Top VPN in China (mainland) 在全球(含中國大陆)好用的国外优质付费vpn推荐
Stars: ✭ 27 (-77.5%)
Mutual labels:  china
simpleopendata
simple guidelines for publishing open data in useful formats
Stars: ✭ 87 (-27.5%)
Mutual labels:  copyright
is-pwa-ready
Tracking the status of PWA in Chinese browser
Stars: ✭ 35 (-70.83%)
Mutual labels:  china
vue-china-map
vue+vuex+axios+echarts画一个动态更新的中国地图
Stars: ✭ 64 (-46.67%)
Mutual labels:  china
SiteSource
揭穿中医网站源文件
Stars: ✭ 71 (-40.83%)
Mutual labels:  china
tripreader-data
“读卡识途”项目公开数据
Stars: ✭ 58 (-51.67%)
Mutual labels:  china
Laosheng.top
老生常谈,节约您的搜寻时间。Laosheng.top 中国新闻云媒体,中央外宣与一带一路云媒体,五大洲的报纸、电视、通讯社;The Belt and Road Cloud Media。 解放军微博阵列,明星微博粉丝榜。中央有关部门大全,政府政协人大两院。中国千县地名图,联合国有关部门。 大萌望海楼,找法不用愁。中国法律体系概览,大萌法律读本。 老生常谈排行榜,难搜到的好网站。LSIP 大规模集成网页。😤
Stars: ✭ 21 (-82.5%)
Mutual labels:  china
Swift-FS-China
Swift China Community
Stars: ✭ 44 (-63.33%)
Mutual labels:  china
abp-rules
My list of Adblock Plus rules, mainly for China websites
Stars: ✭ 23 (-80.83%)
Mutual labels:  china
wp-plugin-creativecommons
Official Creative Commons plugin for licensing your content. With Creative Commons licenses, keep your copyright AND share your creativity.
Stars: ✭ 95 (-20.83%)
Mutual labels:  copyright
justjavac
justjavac's modules
Stars: ✭ 15 (-87.5%)
Mutual labels:  china
lemonitor
列出开源软件的中国境内镜像站点 (List of mirror sites in China for open source software)
Stars: ✭ 55 (-54.17%)
Mutual labels:  china
translation-google
A Google Translate component for Nodejs.
Stars: ✭ 42 (-65%)
Mutual labels:  china
china-ip-list
每小时更新中国IP范围列表,Update Mainland China ip‘s list in everyhour
Stars: ✭ 40 (-66.67%)
Mutual labels:  china
AdBlock-Acceleration
Accelerated subscription for international/China region ad filtering rules(国际/中国地区广告过滤规则的加速订阅)
Stars: ✭ 327 (+172.5%)
Mutual labels:  china
tools
Set of tools, packages, and libraries that every open-source Go project always needs with almost no dependencies.
Stars: ✭ 49 (-59.17%)
Mutual labels:  copyright
JooJump
老婆和女朋友列表
Stars: ✭ 24 (-80%)
Mutual labels:  china
dart.cn
Dart docs localization, get started from the wiki page here: https://github.com/cfug/dart.cn/wiki
Stars: ✭ 64 (-46.67%)
Mutual labels:  china
Weather
用C#编写的天气预报小工具(.NET4.0 & Visual Studio 2017)
Stars: ✭ 19 (-84.17%)
Mutual labels:  china

Ramile

Ramile a handy tool used to automatically extract 3000 lines of source codes from given project/folder, as a requirement of China Software Copyright application process. The goal of Ramile is to save 0.5~1 hour of your time spent on preparing the 60 pages of source code for each Software Copyright submission. Currently Ramile has below features:

  • Automatically extracting the source code and generating a docx file containing 3000 lines. (You have to manually remove the last few pages of the docx to make it exactly 60 pages, though)
  • Supporting most of the commmon front-end projects: android/ios/web/Wechat mini program, etc
  • Configurable. Just place a .ramileconfig.json under the project root folder. (See "Config" section for details)

Tested under python 3.6.1.

Installation

Right now we can only run Ramile from source code. In the future it may be uploaded to pypi.

To run Ramile source code, clone the repository and install dependencies: pip install -r requirements.txt. Or if in China, mirros could be used pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ -r requirements.txt

Basic Usage

Running from source code:

python ramile-cli.py extract <path to your project root>

When the extraction is completed, a file named extracted_code.docx will be generated under your project root directory, with 3000 lines of code. You just have to open it and remove unnecessary pages to make the document exact 60 pages.

If you want to strictly meet the regulation, you can extract all the lines by append Inf to the command line:

python ramile-cli.py extract <path to your project root> Inf

And then you just have to open it and keep the first 30 pages and the last 30 pages, and remove all the intermediate pages.

Config

Ramile automatically loads the config file .ramileconfig.json from the project root, if it exits. The file should be in json format. Possible config items as below:

Key Description Default Example
ignore Sets the directories/files to be ignored by Ramile. "ignore" paths should be sub directories/files under source_root. Any directories/files starting with any one of the "ignore" items will be ignored. Wildcars are not supported. [] ['Pods', 'libs']
source_root Overwrites the root directory of source codes to avoid Ramile process from the project root. '' 'app'
filters Sets the exclusive filters (which means, all other extensions will NOT be processed) for file extensions. By default all files will be processed. [] ['.js', '.vue']
lines_to_extract Sets the total lines to extract 3000 3000

Supported Languages

Language Extensions
JavaScript .js, .jsx, .vue, .wpy
Java .java
PHP .php
HTML .html, .htm
CSS .css, .less, .sass
Swift .swift
Objective-C .m

Test:

cd tests
pytest
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].