Skip to main content

A small tool for generating and transformation accomplishments from BibTex format files

Project description

PAIS Accomplishments

About

A small tool for generating and transformation accomplishments from BibTex format files.

Quick start

Install

For install package run it.

pip install [package_name]

Upgrade

For upgrade tools to latest version run it

pip install [package_name] --upgrade

Dependencies

Add to PATH

On Mac + zsh

nano ~/.zshrc

And the following line to the .zshrc with the actual path of the [package_name] script

export PATH="/path/to/package:$PATH"

On Mac and Linux + bash

nano ~/.bash_profile

And the following line to the .bash_profile with the actual path of the [package_name] script

export PATH="/path/to/package:$PATH"

Simple use

Help

For watch help message run paisAccTool.py:

python3 paisAccTool.py -h

Sample

For watch to work run paisAccTool.py for sample accomplishments file it

python3 paisAccTool.py accomplishments_sample.bib -c -en

Terminal output:

Hello everyone!
This is the micro tools for contain and formating accomplishments from BibTex source
 [ ]  misc accomplishment: rand1        done
 [ ]  misc accomplishment: rand2        done
 [ ]  misc accomplishment: rand3        done
 [ ]  misc accomplishment: rand4        done
1. Наставник образовательной программы Звездный путь.Зима, Иван Иванов, Московского государственного университета, 2.2023
2. Наставник образовательной программы Тёмная материя.Весна, Мария Петрова, Санкт-петербургского государственного университета, 4.2023
3. Победитель образовательной программы Космос.Лето, Алексей Сидоров, Новосибирского государственного университета, 6.2023
4. Участник олимпиады искусственный интеллект.Осень, Екатерина Кузнецова, Томского государственного университета, 9.2023

Common usage format

python3 paisAccTool.py <source .bib file> [-d <destination>, -t "template string", -m "field" "for" "transformation", -c, -en]
  • -t "template" contain a python string template that will be used to generate the list of accomplishments. Important, a template can only contain the bibtex field names of an object;
  • -m <"words", " " ..> contain bibtex fields of the object, which are required to be put in the gent case;
  • -c mean that each new entry will start with a capital letter;
  • -en mean that the list of accomplishments will be output with numbering.
The micro tools for contain and formating accomplishments from BibTex source

positional arguments:
  source                Path to source .bib file

options:
  -h, --help            show this help message and exit
  -d DESTINATION, --destination DESTINATION
                        Path to destination .bib file
  -t TEMPLATE, --template TEMPLATE
                        A template string for generating accomplishment string. Default: {prefix} {type} {title}, {author}, {organization}, {month}.{year}
  -m MORPHS [MORPHS ...], --morphs MORPHS [MORPHS ...]
                        A list of fields for morphological transformations. Default: ('type', 'organization')
  -c, --capitalize      Flag
  -en, --enumerate      Flag

Other usage sample

Command to output the list of accomplishments to a file

python3 paisAccTool.py accomplishments_sample.bib -c -en -d output.txt

Command with its own output template

python3 paisAccTool.py accomplishments_sample.bib -t "{prefix} {type} {title}, {author}, {organization}, {location} {start}-{end}"

Command with its own morphological transformations fields

python3 paisAccTool.py accomplishments_sample.bib -m "title", "author", "type"

Accomplishments format

Each accomplishment is stored in a .bib file in bibtex format. Below are the fields that are used to store achievements:

@misc{identifier,
	prefix = {Твоя роль на мероприятии},
	title = {Название мероприятия},
	type = {Тип мероприятия},
	author = {ФИО},
	organization = {Организация, которая проводит мероприятие},
	section = {Секция на конференции или номинация на олимпиаде, и тп.},
	location = {Место проведения},
	url = {url подтверждения достижения},
	start = {дата начала},
	end = {дата окончания},
	year = {год},
	month = {месяц},
	certificate = {результат, документ подтверждающий результат или участие (диплом, ...)},
	order = {место в конкурсе или статус на мероприятии}
}

If you do not have a field to enter your specific information, you can add such a field:

    <key> = {value}

The Accomplishments.bib file can be stored locally on your pc or in a remote git repository, so every commit means a new achievement (very convenient).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pais_accomplishments_tool-1.0.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pais_accomplishments_tool-1.0.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pais_accomplishments_tool-1.0.0.tar.gz.

File metadata

  • Download URL: pais_accomplishments_tool-1.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.4.0

File hashes

Hashes for pais_accomplishments_tool-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d0bef2a8385d619add615e4350012002d507153dc7b7ee8493638405efea81ab
MD5 678f7422a3e5bf11474838d041deb4e5
BLAKE2b-256 025ed9cd7d946d3099be5dcf93ab8eacbced30382b889c0c4347a56564a1e3ae

See more details on using hashes here.

File details

Details for the file pais_accomplishments_tool-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pais_accomplishments_tool-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 756ff194c1718f32c47f13348044e990a8c7b8ff5a11894f5578ec2f07f84dbf
MD5 d629cfafe701773e65d9a0e27d44cefb
BLAKE2b-256 7d0b7146cb3f9dbdcb589e7624e871d66d06ab547fb0422116ed188b29cfb30c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page